Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 34
Registered: ‎08-11-2011
My Device: BlackBerry Bold
My Carrier: Axis

Interpreting Magnetometer Data

I'm trying to build an app using the BlackBerry's Magentometer but I don't quite understand how to interpret the data. My question is:

1. Do the vector components returned by MagnetometerData.getMagnetometerData() use the device coordinate system or do they use the world coordinate system?

2. If they use the device coordinate system, how would I remap the axes so that it uses the world coordinate system?


Thanks in advance.