Andrew Tridgell
8cc2b7669b
PeriodicProcess: added set_failsafe() call
...
this adds an optional failsafe function that will be called in the
timer loop
2011-12-21 23:31:38 +11:00
Andrew Tridgell
4bbd5392ef
removed AperiodicProcess code
...
this code was never being used, and was more complex than it was
worth.
2011-12-17 07:29:09 +11:00
Andrew Tridgell
be1ba5354e
timer: enable interrupts during timer processing
...
this prevents us losing serial bytes when we call sensor drivers that
take more than 100usec to read.
We also prevent timer recursion by re-enabling the timer after all
callbacks are complete
2011-12-16 20:09:38 +11:00
Andrew Tridgell
5b4717ea55
timers: change to 1kHz timer by default
...
we were using a 227Hz timer, which is far too slow
2011-12-16 20:09:25 +11:00
Pat Hickey
a7b9c8b9cd
AP_PeriodicProcess: AP_TimerProcess can register multiple callbacks.
2011-12-11 15:21:10 -08:00
Pat Hickey
48f92c49fa
hil-sensors: added stub libraries for InertialSensor and PeriodicProcess
...
* Also added dummy ivar to APM_BMP085_hil
2011-11-25 20:00:18 -08:00
Pat Hickey
7474a8be53
purple: added PeriodicProcess library
...
this library provides a clean API for drivers to request periodic
timer driven calls at whatever rate they need
2011-11-25 20:00:16 -08:00