Tom Pittenger
9d74f57ed3
AP_PID: replace fabs() with fabsf()
10 years ago
Andrew Tridgell
33555b7f12
AC_PID: revert AP_Math class change
10 years ago
Tom Pittenger
01180d52c4
AP_PID: compiler warnings: apply is_zero(float)
10 years ago
Randy Mackay
67b0c6f5c4
AC_PID: replace is_equal with is_zero
10 years ago
dgrat
303cfd683a
AC_PID: replace floating point '==' with is_equal
...
Also add div-by-zero check to fix calc_filt_alpha
Also get_i and get_shrink_i do not need to set values to zero in Vector2f
constructor because this is already done.
10 years ago
Randy Mackay
a095a8c3a1
AC_PID: more protection against NaN and Inf
10 years ago
Randy Mackay
cc0d5b9ced
AC_PI_2D: replace set_filt_hz method with filt_hz
...
Thanks to Jonathan Challinger for spotting this bug
10 years ago
Leonard Hall
34a5bc8b33
AC_PI_2D: 2-axis PI controller
10 years ago
Leonard Hall
517448e536
AC_PID: add input filtering and restructure
10 years ago
Robert Lefebvre
b35ec4339e
AC_PID: Add method to set the D-term Filter Rate from main code.
11 years ago
Robert Lefebvre
f1c3f2a3d1
AC_PID: Remove get_leaky_i function which is now found in AC_HELI_PID.
11 years ago
Randy Mackay
fbc5af2705
AC_PID: results returned as float
11 years ago
Andrew Tridgell
8c25a504c3
AC_PID: fixed indent-tabs-mode
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
Andrew Tridgell
2294acc652
AC_PID: fixed build on ARM
12 years ago
rmackay9
24317e721b
AC_PID, AP_AHRS: added descriptions to some parameters
12 years ago
Andrew Tridgell
5e7ca5b0f8
AC_PID: suppress the derivative immediately after reset
...
use _last_derivative == NAN to flag that the derivative is invalid
12 years ago
Andrew Tridgell
eac1ad49d6
AC_PID: save 8 bytes per AC_PID object
...
we don't need the _derivative or _output variables
12 years ago
Robert Lefebvre
1d12b781a0
AC_PID: Create Leaky Integrator Function.
12 years ago
uncrustify
fc9f1a8216
uncrustify libraries/AC_PID/AC_PID.cpp
13 years ago
Andrew Tridgell
5e8fe8d93e
AP_Param: update PID libraries for new constructor syntax
13 years ago
rmackay9
24a471ff8f
AC_PID - added more paranoid checking that imax is positive in constructor, operator() and load_gains methods
13 years ago
Jason Short
24ce02c6a4
made I term return in same pattern as D term
13 years ago
Andrew Tridgell
9c5a5473ab
added indexes to group info structures
13 years ago
Andrew Tridgell
452749149f
convert AC_PID library to AP_Param
13 years ago
Andrew Tridgell
f9eed9bd9e
fixed missing return in D value
13 years ago
Jason Short
af79eb273f
Added D term to APM_PI - need to refactor this as a parent class and two child classes to save code space, remove dupes
13 years ago