February 2015
Intermediate to advanced
768 pages
26h 24m
English
Whereas an accelerometer detects linear motion, a gyrometer reports angular motion. You can get this data with a Gyrometer class that looks almost identical to Accelerometer. You get an instance by calling Gyrometer.GetDefault, you can attach a handler to its ReadingChanged event (or call its GetCurrentReading method for data on demand), and you can adjust its ReportInterval. The only difference—other than the lack of a Shaken event—is that GyrometerReading’s properties are AngularVelocityX, AngularVelocityY, AngularVelocityZ, and Timestamp.
Read now
Unlock full access