You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mrdeadlocked edited this page Jan 11, 2012
·
11 revisions
Magnetic Sensor added
Added some code to read the values of the magnetic sensor from the sysfs file.
Things to note:
The values returned are kinda crazy. This might be the result of sensor placement.
In an effort to counter the crazy values, I've programmed functionality to read 3 values from a comma seperated value (X,Y,Z) file called magnetic_calibration in /data/misc/. Those values will be added to whatever the sensor generates. These values will probably be device specific and perhaps an app to calibrate the device can be created to manage it.
It is still not clear how accurate the readings will be even with this calibration.