Improving Sensor Accuracy with the Motion Sensor

The Motion class provides access to a virtual sensor. There is no dedicated motion sensor per se, rather the motion API combines the readings of the accelerometer, compass, and gyroscope to provide an enhanced API that overcomes the shortcomings of the individual sensors. The motion sensor provides the greatest accuracy of all the sensors, eliminating possible sensor inaccuracy issues that occur when relying on a single hardware sensor. For this reason, it is recommended that the motion sensor is used when available.

As mentioned in the previous section, the gyroscope is subject to drift. The motion API alleviates the drifting of the gyroscope by combing its readings with the compass and accelerometer ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.