Page 2 of 2

Posted: Fri Nov 15, 2013 5:44 pm
by brentp
Good news- I'm experimenting with an exponential moving average IIR filter using a particularly fast algorithm implementation. Accelerometer / Yaw sensor is being sampled at 100Hz in the background independent of the logging rate.

The accelerometer filter algorithm is here, if you're curious. https://github.com/autosportlabs/RaceCa ... r_filter.c
Visual observations using the mobile app as a display is looking really good. Just from eyeball response time it looks like an alpha setting of 0.5 to 0.7 will be ideal. Fyi, close to zero alpha = slow response time, 1 = no filtering)

Plan is to test it with with the accelerometer, then make the alpha setting configurable, and then extend it to analog / timer channels.

Almost ready for a Beta-grade firmware; who would like to test it?

Posted: Fri Nov 15, 2013 6:00 pm
by neoraptor
I would happily test it.
Could you send me the firmware?

Posted: Fri Nov 15, 2013 9:54 pm
by brentp

Posted: Sat Nov 16, 2013 6:02 am
by brentp
Here is a preview of the 1.2.5 firmware. please give it a spin.

The IIR filtering is sampled at 100Hz with an alpha of 0.1. Default firmware samples accelerometer at 30Hz.

http://autosportlabs.net/asl_dist/rcp/f ... -1.2.5.elf