Skip to content
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:

  1. The values returned are kinda crazy. This might be the result of sensor placement.
  2. 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.
  3. It is still not clear how accurate the readings will be even with this calibration.

- MrGuy


##Queue Buffer inside frameworks/base/libs/gui/Android.mk Comment out:

ifeq ($(TARGET_BOARD_PLATFORM), tegra)

LOCAL_CFLAGS += -DALLOW_DEQUEUE_CURRENT_BUFFER

endif

Clone this wiki locally