billhsu / AndroidAHRSView

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AndroidAHRSView

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

screenshot

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

About

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

License:MIT License


Languages

Language:Java 100.0%