uncrustify
ded021fa11
uncrustify libraries/AP_PeriodicProcess/AP_TimerProcess.h
13 years ago
Andrew Tridgell
c8befe4536
AnalogSource: make the Arduino AnalogSource interrupt driven
...
this fixes several problems with reading analog sources:
- we were getting poor values because we didn't wait long enough for
an analog source to settle
- we wasted a lot of CPU cycles waiting for conversions
- we were not taking averages over many samples, which we did with
the old AP_ADC driver on the APM1
13 years ago
Andrew Tridgell
534aee17e9
TimerProcess: added suspend_timer()/resume_timer()
...
this will be used to avoid races in driver initialisation
13 years ago
Andrew Tridgell
dbaa6fb6d2
TimerProcess: make some variables uint8_t
...
save a couple of bytes
13 years ago
Andrew Tridgell
79d6c21dde
PeriodicProcess: added set_failsafe() call
...
this adds an optional failsafe function that will be called in the
timer loop
13 years ago
Andrew Tridgell
b484411c41
timers: change to 1kHz timer by default
...
we were using a 227Hz timer, which is far too slow
13 years ago
Pat Hickey
49ca774734
AP_PeriodicProcess: AP_TimerProcess can register multiple callbacks.
13 years ago
Pat Hickey
d288b8870d
purple: added PeriodicProcess library
...
this library provides a clean API for drivers to request periodic
timer driven calls at whatever rate they need
13 years ago