Global Sources
EE Times-Asia
Stay in touch with EE Times Asia
?
EE Times-Asia > Embedded
?
?
Embedded??

Converting 3-axis directions in Android system

Posted: 23 Sep 2011 ?? ?Print Version ?Bookmark and Share

Keywords:Android? sensors? accelerometer? API?

Android is one of the well-known operating systems (OS) for smart phones and other portable devices. It supports various sensors with standard APIs including accelerometers. The accelerometer standard API defines the coordinate system for accelerometer raw data. Users have to then convert the raw data read from sensors to the standard unit and make them comply with the defined coordinate directions. This application note introduces how the coordinate system on Android is defined, and how to convert the 3-axis directions on the driver code within the Android system. The sample code discussed is based on Freescale's driver code for Android 2.2 and 2.3, using the MMA8452Q as an example.

View the PDF document for more information.

Originally published by Freescale Semiconductor Inc. at www.freescale.com as "How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver".





Article Comments - Converting 3-axis directions in Andr...
Comments:??
*? You can enter [0] more charecters.
*Verify code:
?
?
Webinars

Seminars

Visit Asia Webinars to learn about the latest in technology and get practical design tips.

?
?
Back to Top