Robert Lefebvre
bcc3fa0526
AC_HELI_PID: Pass default FF param setting in constructor
10 years ago
Randy Mackay
56b92e7d8c
AC_PID: fix example sketch
10 years ago
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
54f4d4b07c
AP_PID: compiler warnings: reordered constructor
10 years ago
Tom Pittenger
01180d52c4
AP_PID: compiler warnings: apply is_zero(float)
10 years ago
Andrew Tridgell
777685ce1f
AC_PID: fix for HAL_SITL rename
10 years ago
Randy Mackay
67b0c6f5c4
AC_PID: replace is_equal with is_zero
10 years ago
Randy Mackay
3514177314
AC_PI_2D: minor format fix
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
Tom Pittenger
4b97cc1957
AC_PID: fix compile warnings re float constants
10 years ago
Jonathan Challinger
6ea91d012e
AC_PID: calculate filt_alpha every time the filter is run
10 years ago
Randy Mackay
a095a8c3a1
AC_PID: more protection against NaN and Inf
10 years ago
Leonard Hall
ae77c18a19
AC_PID: Protect against NaN and INF
10 years ago
Randy Mackay
f260536373
AC_PID: fix example sketch compile error
10 years ago
Randy Mackay
3f3e622be5
AC_PID: fix example sketch
10 years ago
Randy Mackay
12724e9556
AC_PID: remove include of stdio.h
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
Randy Mackay
c10b0b34ca
AC_PID: replace set_filt_hz method with filt_hz
...
Thanks to Jonathan Challinger for spotting this bug
Also add sanity check to filt_hz
10 years ago
Leonard Hall
34a5bc8b33
AC_PI_2D: 2-axis PI controller
10 years ago
Leonard Hall
046949ea8a
AC_HELI_PID: add input filter and restructure
...
Also removed unused initial_ff from construtor
10 years ago
Leonard Hall
517448e536
AC_PID: add input filtering and restructure
10 years ago
Andrew Tridgell
83dc9bf5b3
AC_PID: fixed example build
11 years ago
Randy Mackay
0a46afa6c4
AC_PID: init members to reduce compiler warnings
11 years ago
Robert Lefebvre
fa9d625e39
AC_HELI_PID: Add feedforward accessor functions.
11 years ago
Randy Mackay
faf3415e5e
AC_PID: example sketch prints individual P, I and D values
11 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
Robert Lefebvre
6333b4bba6
AC_PID: update example sketch to test AC_HELI_PID
11 years ago
Robert Lefebvre
ef7dc815cd
AC_PID: Change Private members to Protected so that AC_HELI_PID can access them.
11 years ago
Robert Lefebvre
94e9bed9cf
AC_PID: Add new AC_HELI_PID as a child of AC_PID
11 years ago
Kevin Hester
b7410494e3
AC_PID: fixup line endings
11 years ago
Randy Mackay
8fae75ee87
AC_PID: add AC_P controller
...
Used for stabilize angle controllers, alt hold and loiter
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
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago
Andrew Tridgell
9349259487
AC_PID: updates for new AP_Param API
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Pat Hickey
c56c4ae240
Various example sketches: hal.uart0->begin(115200) is redundant. use console.
...
just assume uart0 is initialized by the HAL, because it is. DRY.
also, don't ever use uart0 explicitly in example sketches, use console
and let the hal figure it out.
12 years ago
Pat Hickey
050a878935
AC_PID: Ported to AP_HAL.
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
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