5 Commits

Author SHA1 Message Date
Julian Oes
f528c63030 integrator: add a put method for known intervals
This adds a second put method to the integrator class. This allows to
integrate with known intervals between samples, rather than based on
timestamps. This makes integrating the samples coming out of the MPU9250
FIFO buffer easier.
2016-05-04 22:28:19 +02:00
Julian Oes
d824ca3a14 integrator: fix style 2016-04-25 12:48:48 +02:00
Julian Oes
302bf879de integrator: improvements and cleanup
The integrator had an untested read mode which did not apply the coning
correction. Instead of keeping two integrals (auto/read) it is now one
and the reset mechanism can be selected by setting the
auto_reset_interval to 0 to disable it or some positive number else.

Also, the integrator could potentially explode if a (single) timestamp
was wrong, so before the last integrated one. This is now caught with a
dt of 0 instead of inf/nan.
2016-04-25 12:48:48 +02:00
Lorenz Meier
fe216b5c5f Device: Fixed code style 2015-10-19 13:15:22 +02:00
Lorenz Meier
d05b3fcc08 Device: Split integrator into CPP and H 2015-09-20 10:53:22 +02:00