Randy Mackay
8fae75ee87
AC_PID: add AC_P controller
...
Used for stabilize angle controllers, alt hold and loiter
2014-02-15 06:09:08 +11:00
Randy Mackay
fbc5af2705
AC_PID: results returned as float
2014-02-15 06:09:08 +11:00
Andrew Tridgell
8c25a504c3
AC_PID: fixed indent-tabs-mode
2013-05-30 09:54:53 +10:00
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.
2013-01-16 13:52:17 +11:00
Andrew Tridgell
2294acc652
AC_PID: fixed build on ARM
2013-01-02 22:09:02 +11:00
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
2013-01-02 17:29:37 +11:00
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
2012-12-20 14:52:37 +11:00
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
2012-12-20 14:52:35 +11:00
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
2012-12-20 14:52:30 +11:00
Andrew Tridgell
9349259487
AC_PID: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
2012-12-20 14:51:37 +11:00
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
2012-12-20 14:51:28 +11:00
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.
2012-12-20 14:51:25 +11:00
Pat Hickey
050a878935
AC_PID: Ported to AP_HAL.
2012-12-20 14:51:25 +11:00
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.
2012-12-20 14:51:19 +11:00
rmackay9
24317e721b
AC_PID, AP_AHRS: added descriptions to some parameters
2012-12-10 22:28:39 +09:00
Andrew Tridgell
5e7ca5b0f8
AC_PID: suppress the derivative immediately after reset
...
use _last_derivative == NAN to flag that the derivative is invalid
2012-11-27 18:45:49 +11:00
Andrew Tridgell
eac1ad49d6
AC_PID: save 8 bytes per AC_PID object
...
we don't need the _derivative or _output variables
2012-11-27 18:06:22 +11:00
Robert Lefebvre
1d12b781a0
AC_PID: Create Leaky Integrator Function.
2012-11-26 21:01:20 -05:00
Andrew Tridgell
eb5ac90e12
AC_PID: fixed example build
2012-11-24 21:07:34 +11:00
rmackay9
41489f34f9
AC_PID: fixed example sketch's compile errors
2012-11-07 23:34:10 +09:00
uncrustify
6c5757e775
uncrustify libraries/AC_PID/AC_PID.h
2012-08-21 18:59:13 -07:00
uncrustify
fc9f1a8216
uncrustify libraries/AC_PID/AC_PID.cpp
2012-08-21 18:59:13 -07:00
uncrustify
7c4f980638
uncrustify libraries/AC_PID/examples/AC_PID_test/AC_PID_test.pde
2012-08-21 18:59:13 -07:00
Andrew Tridgell
5e8fe8d93e
AP_Param: update PID libraries for new constructor syntax
2012-08-08 12:11:57 +10:00
rmackay9
24a471ff8f
AC_PID - added more paranoid checking that imax is positive in constructor, operator() and load_gains methods
2012-03-20 11:51:15 +09:00
Jason Short
b094f6ce52
added set integrator
2012-02-23 09:38:08 -08:00
Jason Short
24ce02c6a4
made I term return in same pattern as D term
2012-02-16 22:09:22 -08:00
Andrew Tridgell
9c5a5473ab
added indexes to group info structures
2012-02-13 16:22:52 +11:00
Andrew Tridgell
452749149f
convert AC_PID library to AP_Param
2012-02-13 16:22:52 +11:00
Andrew Tridgell
f9eed9bd9e
fixed missing return in D value
2012-02-13 16:22:52 +11:00
Randy Mackay
6877b8b3d6
AC_PID Library - added example sketch
2012-02-05 17:35:15 +09:00
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
2012-01-28 21:21:43 -08:00