-
Notifications
You must be signed in to change notification settings - Fork 14
Home
mrdeadlocked edited this page Jan 11, 2012
·
11 revisions
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.
- MrGuy
##Queue Buffer inside frameworks/base/libs/gui/Android.mk Comment out:
ifeq ($(TARGET_BOARD_PLATFORM), tegra)
LOCAL_CFLAGS += -DALLOW_DEQUEUE_CURRENT_BUFFER
endif