Home

Awesome

AndroidAHRSView

Attitude Heading Reference System(AHRS) display module for Android.

<img src="https://raw.githubusercontent.com/billhsu/AndroidAHRSView/master/doc/androidAHRS.png" alt="screenshot" width="200" height="200"/>

How to use it

Add gradle dependency

  dependencies {
          compile 'me.billhsu.ahrsview:AHRSView:1.0.3'
  }

Add to the layout xml

<me.billhsu.ahrsview.AHRSView
        android:id="@+id/AHRSView"
        android:layout_width="300dp"
        android:layout_height="300dp"/>

Use it in your code

AHRSView ahrsView = (AHRSView) findViewById(R.id.AHRSView);
ahrsView.setRoll(roll);
ahrsView.setPitch(pitch);
ahrsView.setYaw(yaw);

Demo gif

gif1 gif2

For more details please check the SampleApp project.

Author

Shipeng Xu