Peter Barker
e5e4dee708
AC_PID: stop libraries including AP_Logger.h in .h files
...
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h
This necessitated moving The PID_Info structure out of AP_Logger's
namespace. This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!
There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
3 years ago
Leonard Hall
8d330a95b5
AC_PID: replace reset_I_smoothly with relax_integrator
3 years ago
Andy Piper
e84a05d5ba
AC_PID: add slew_rate modifier
3 years ago
Andrew Tridgell
476e9fc15a
AC_PID: use CLASS_NO_COPY()
4 years ago
Andrew Tridgell
95b375dc87
AC_PID: log SRate in pid info and expose slew rate
4 years ago
Andrew Tridgell
6f2e592943
AC_PID: allow for slew limit scaler
...
used by plane to have slew limiter in deg/s
4 years ago
Andrew Tridgell
62afa46924
AC_PID: added accessor for IMAX
4 years ago
bnsgeyer
c565536afa
AC_PID: add support to smoothly reset the integrator
4 years ago
Andrew Tridgell
739410953b
AC_PID: added slew limiter AC_PID
...
this adds the fixed wing slew limiter as an optional part of
AC_PID. It allows the user to configure a maximum slew limit to
prevent oscillations in PIDs when gains are too high
4 years ago
Peter Barker
c78dcb15a1
AC_PID: remove dead get_ff(float target) method as per TODO comment
4 years ago
Randy Mackay
0052dcc8f8
AC_PID: update pid_info when integrator set
5 years ago
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