-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Somebody in the thread at some point said: | On Wed, 26 Nov 2008 11:28:23 +0100 | Michael Tansella <[EMAIL PROTECTED]> wrote: | |> I read the wiki and the gestures source code but it didnt't help. |> I set the samplerate to 400 Hz and though I think the time between |> two (x y z separator) measurements should be ca 2,5 ms, but in my |> logfile you can see that there are sometimes 30 ms. So I think I |> loose some values. | | Along similar lines, while making some improvements to OpenMooCow I | noticed that opening the accelerometers with O_NONBLOCK still leads to | read() blocking for many milliseconds as described. Sometimes much | longer due to the threshold option. Should the accelerometers (meaning | the "input" subsystem, I guess) support non-blocking reads in the 2.6.24 | kernel?
Can you not do a select() to see how the land lies before doing the read? - -Andy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkktXgMACgkQOjLpvpq7dMqmNACeOMS7T236JZcVYRTI7fSVSZYk 5d4AoJDleSTBc6f2R1N+nYpHqD07HSHJ =1t+T -----END PGP SIGNATURE----- _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
