Gyroscope Explorer provides a working code example and Android application that demonstrates how to use the gyroscope sensor for measuring the rotation of an Android device. While this example is implemented with Android/Java, the jist of the algorithm can be applied to almost any hardware/language combination to determine linear acceleration. Gyroscope Explorer contains Android classes that demonstrate how to use the Sensor.TYPE_GYROSCOPE and Sensor.TYPE_GYROSCOPE_UNCALIBRATED. This includes integrating the sensor outputs over time to describe the devices change in angles, initializing the rotation matrix, concatination of the new rotation matrix with the initial rotation matrix and providing an orientation for the concatenated rotation matrix. The Android developer documentation covers some of this information, but it is an incomplete example. Gyroscope Explorer provides an example that is fully implemented. Gyroscope Explorer provides the Earth frame orientation with the azimuth, pitch and roll and described in a clean graphical view.
Gyroscope Explorer allows you to visulize rotation measurements. View rotation data from all three axis in real-time. This data can be written to an external .CSV file, saved and then viewed on your favorite spreadsheet application at a later time.
Fuse the devices gyroscope sensor, magnetic sensor and acceleration sensor to determine device rotation. This allows for reliable and robust rotation measurements in environments where rapid rotations or external vibrations may be common.