[library request] read internal compass

latcc

Banned
It would be really useful to have a library to read the state of the internal magnetic compass. This would give us the ability to see our direction without moving (you rarely map read and walk).

Also for marine and aviation purposes the GPS direction is your TRACK (path over ground) and a compass reading would give users their Course (heading). A Heading is the compass direction you have to point to maintain a chosen ground track in wind or tide.

So a compass library would be great! It would be simple, returning a direction between 0 and 359 (or 1 and 360 if easier).
 

stevel05

Expert
Licensed User
Longtime User
Have a look here The compass is included, you can read about the Sensor.TYPE_ORIENTATION: here and the example app with the Library is a good place to start.
 
Top