Gyrometer
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
.
Get Universal Windows® Apps with XAML and C# 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.