1 (edited by osmaneralp 2011-01-14 12:31:53)

Topic: How do I get updates from the accelerometer more quickly?

I've noticed that new accelerometer readings are available at very irregular intervals. Sometimes a new reading is available after 10ms. Sometimes it takes 50ms. I need a new reading every 10 ms consistently. Does anyone know if this is possible? What is the fastest accelerometer update rate that other people have seen?

Re: How do I get updates from the accelerometer more quickly?

How are you reading the data?
'
Did you notice the "usleep(100*1000);" in acceld_if.c under http://files.chumby.com/source/falconwi … -1.0.0.tgz

Re: How do I get updates from the accelerometer more quickly?

I see the statement now that you mention it! Very interesting. Thanks for pointing it out. I also see that if you run acceld with any argument, it runs in debug mode. I'll work on it some more and report what I find.

BTW, I'm reading the data using CNPLATFORMFORM_falconwing code in gacc.c. This method accesses the acc via shared memory. In the same file, there is another method which uses sockets. I'm not sure if that would be faster.