openframeworks/openFrameworks — pull request #2275 by onelittleweb (2013-07-16 21:54:43+00:00)
Title: ofxAndroidMagenticField proposal [Do not Merge]

First implementation of the MagneticField Sensor in Android. Needs testing and feedback from Android tablets and phones.

The compass uses accelerometer to improve sensor feedback trying to avoid 2.3 API and gyroscope / gravity hardware so maybe it´s not the most accurate way.

Magnetic field is implemented in a different JAVA class, not sure if it should share class with other Android sensors similar to iOS CoreLocation.

An example is included for testing.

Best,

P.