Accelerometer
Andreas Kemnade
andreas at kemnade.info
Thu Jul 10 08:53:35 CEST 2008
On Mon, 7 Jul 2008 20:26:45 +0200
Tobias Diedrich <ranma+openmoko at tdiedrich.de> wrote:
> Andreas Kemnade wrote:
>
> > I have tried to do get some values from the accelerometers.
> > I get from /dev/input/event3 these values:
> >
> > 000b070: 5de6 7148 4108 0200 0200 0000 ee08 0000 ].qHA...........
> > 000b080: 5de6 7148 7b08 0200 0200 0100 1200 0000 ].qH{...........
> > 000b090: 5de6 7148 9608 0200 0200 0200 2a03 0000 ].qH........*...
> >
> > As far as I understnd thee first line is for the x axis,
> > the second for the y-axis, the thirs for the z-axis.
> >
> > The value for the x axis does not change.
> >
> > I get no data for /dev/input/event2.
>
> From a cursory look, "hexdump /dev/input/event2" and
> "hexdump /dev/input/event3" both show accelerometer data on my phone.
>
ok, neod seems to do something with them and seems to sometimes reconfigure them.
That seems to be the reason why I got no data.
I have managed to get values from event2, too now.
Greetings
Andreas Kemnade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20080710/f6f92929/attachment.pgp
More information about the community
mailing list