Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
James Bielman
4fa7bb1486
Add AVR compatibility header for missing math.h definitions.
...
- Define float versions of math functions to the double versions
on AVR (eg. #define sinf sin).
- These macros appear to be missing in older versions of avr-libs.
- Include AP_Math.h rather than math.h to get these definitions.
12 years ago
Pat Hickey
84e0dd406e
Filter: ported to AP_HAL
12 years ago
uncrustify
0afc8a5958
uncrustify libraries/Filter/DerivativeFilter.cpp
13 years ago
Andrew Tridgell
81cd4b6c13
Filter: ensure the derivative filter never returns an invalid number
13 years ago
Andrew Tridgell
899eeb608b
Filter: automatically cope with duplicate timestamps
...
this makes it easier for callers to avoid excessive slope calculations
Thanks to Jon Challinger for the idea
13 years ago
Andrew Tridgell
d7d33c64b7
Filter: fixed a off-by-one DerivativeFilter bug
...
many thanks to Jon Challinger for noticing this!
13 years ago
Andrew Tridgell
520d762382
Filter: split the DerivativeFilter steps into update() and slope()
...
this allows us to apply new data at a different rate than we calculate
the slope.
13 years ago
Andrew Tridgell
1a42b10255
Filter: fixed typo in 9 point DerivativeFilter
13 years ago
Andrew Tridgell
75470dc912
Filter: cope with non-uniform time steps in the DerivativeFilter
...
this helps with the barometer a lot, as the timing is quite variable
13 years ago
Andrew Tridgell
f19e5a6273
Filter: added DerivativeFilter implementation
...
this adds a DerivativeFilter implementation of up to 10 points
13 years ago