Leonard Hall
ab0bdc9fe6
AC_PID: upgrade to PID object
6 years ago
Randy Mackay
cae020c307
AC_PID: minor format fix
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Randy Mackay
b381ae7bf3
AC_PID: support storing actual
7 years ago
Randy Mackay
4e8155f4e5
AC_PID: allow non-zero ff gain default
7 years ago
Randy Mackay
91d489d91e
AC_PID: implement reset_filter
7 years ago
Andrew Tridgell
b97bf5d15e
AC_PID: added feed-forward to AC_PID
8 years ago
Andrew Tridgell
ccae8979c1
AC_PID: expose filt_hz as a AP_Float
...
this allows defaults to be overridden
8 years ago
Andrew Tridgell
2086b591a2
AC_PID: expose ff() method in AC_PID
...
this allows for an abstract AC_PID class to be used in
AC_AttitudeControl for both multicopter and heli
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
412dc10353
AC_PID: expose parameters as AP_Float
...
this enables full tuning capability
9 years ago
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
9 years ago
Lucas De Marchi
f637a29ab6
AC_PID: replace header guard with pragma once
9 years ago
Gustavo Jose de Sousa
286d084d83
AC_PID: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
3ec8857fbc
AC_PID: added set_desired_rate() interface
...
used to setup _pid_info for logging
10 years ago
Robert Lefebvre
967071ca62
AC_PID: Integrate PID Logging functionality.
10 years ago
Tom Pittenger
9d74f57ed3
AP_PID: replace fabs() with fabsf()
10 years ago
Jonathan Challinger
6ea91d012e
AC_PID: calculate filt_alpha every time the filter is run
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
517448e536
AC_PID: add input filtering and restructure
10 years ago
Randy Mackay
0a46afa6c4
AC_PID: init members to reduce compiler warnings
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
ef7dc815cd
AC_PID: Change Private members to Protected so that AC_HELI_PID can access them.
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
Andrew Tridgell
2294acc652
AC_PID: fixed build on ARM
12 years ago
Andrew Tridgell
9349259487
AC_PID: updates for new AP_Param API
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
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
6c5757e775
uncrustify libraries/AC_PID/AC_PID.h
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
b094f6ce52
added set integrator
13 years ago
Andrew Tridgell
452749149f
convert AC_PID library to AP_Param
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
jasonshort
4ec8805216
Reverted to older PID. Restored the older filter, and removed PI command. I am no longer using PID for the quad and have switched to PIPI loops which perform much better. The D term in this class is not that great.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3241 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
d192ceb8f8
upped D filter to 6
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3096 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
915a564b8f
Changed the PID derivative filter to a moving average with 4 samples. Having great luck with it and High kD when using noisy sensors.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2957 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
tridge60@gmail.com
cf68e31729
fixed warnings in PID.h
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2560 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
5a22080484
I am Adding A "PI" loop to the mix. This is a need for AC2. We can optimize the internals later, but I basically duped the get_PID and removed the D term internals.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2338 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
tridge60@gmail.com
860998d337
implemented typesafe PSTR()
...
This makes PSTR() type safe by using a 1 byte wrapper
structure. Attempts to use the wrong varient of a print function will
generate a compilation error.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1797 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
240a3a2f2a
quick.fix
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1688 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
DrZiplok@gmail.com
944825772d
Use AP_Var to store PID scaling values.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1652 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
c9227dbcaf
fixed a scaling bug in imax
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1553 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
55667fd905
removed EEPROMB references
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1315 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
6c10842562
Fixed PID error for low pass filter.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1295 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago