g-sensor calibration problem

John Lee john_lee at openmoko.com
Fri Jun 20 11:02:41 CEST 2008


Hi,

If I use the enclosed python code to test g-sensor on gta02 (read
/dev/input/event3) while holding the neo vertically, normally the
result looks like this:

x = -72, y = -990, t = 1.976891 pi
x = -72, y = -990, t = 1.976891 pi
x = -54, y = -990, t = 1.982655 pi
x = -72, y = -990, t = 1.976891 pi
x = -72, y = -990, t = 1.976891 pi

It's quite reasonable.  However,

* sometimes after booting
* always after resume (apm -s)

the result will look like this:

x = 1620, y = -36, t = 0.492928 pi
x = 1620, y = -18, t = 0.496463 pi
x = 1620, y = -36, t = 0.492928 pi
x = 1620, y = -36, t = 0.492928 pi
x = 1620, y = -36, t = 0.492928 pi

I wonder what's the cause?  Any more information I could provide?


Regards,
John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: accelerometer.py
Type: text/x-python
Size: 1099 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080620/e745d907/attachment.py 


More information about the openmoko-kernel mailing list