Download presentation
Presentation is loading. Please wait.
Published byPhoebe Webster Modified over 9 years ago
1
touchdevelop api api gyroscope measure device rotation rate Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.
2
touchdevelop api gyroscope o gyroscope sensor determines rotational velocity of the device in each axis. o use values obtained from the gyroscope sensor to determine the orientation of the device in space o if you are interested in determining the attitude (yaw, pitch, and roll) of the device, use Motion o gyroscope sensor is not required for Windows Phone devices; your phones do not have it
3
touchdevelop api axis http://en.wikipedia.org/wiki/Aircraft_principal_axe s o see Wikipedia
4
touchdevelop api apis o Senses→has gyroscope Indicates if the gyroscope is available on the device Senses→has gyroscope o Senses→has motion Indicates if the motion can be computed on the device. Motion requires accelerometer, compass and gyroscope. Senses→has motion o Motion→gravity Gets the gravity vector associated with this reading. Motion→gravity o Motion→acceleration Gets the linear acceleration of the device, in gravitational units. Motion→acceleration o Motion→yaw Gets the yaw of the attitude in degrees Motion→yaw o Motion→pitch Gets the pitch of the attitude in degrees Motion→pitch o Motion→roll Gets the roll of the attitude in degrees Motion→roll o Motion→rotation speed Gets the device rotation speed in degrees per sec. Motion→rotation speed o Motion→time Gets a timestamp indicating the time at which the reading was calculated. Motion→time
5
touchdevelop api examples o Senses: gyroscope ☁ http://touchdevelop.com/ijckhttp://touchdevelop.com/ijck o attitude graph ☁ http://touchdevelop.com/otcrhttp://touchdevelop.com/otcr o gyroscope graph ☁ http://touchdevelop.com/oegfahttp://touchdevelop.com/oegfa
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.