Caio Marcelo de Oliveira Filho
fe718a6ce8
APM_Control: use millis/micros/panic functions
9 years ago
Lucas De Marchi
5244559010
Minimize AP_Progmem.h includes
...
Most of AP_Progmem is already gone so we can stop including it in most
of the places. The only places that need it are the ones using
pgm_read_*() APIs.
In some cases the header needed to be added in the .cpp since it was
removed from the .h to reduce scope. In those cases the headers were
also reordered.
9 years ago
Lucas De Marchi
1b07dabeb7
Replace prog_char and prog_char_t with char
...
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
1336d621be
Replace use of strcpy_P() with strcpy()
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Grant Morphett
417188d7eb
APM_Control: Fixed spelling error in parameter desc.
10 years ago
Gustavo Jose de Sousa
db9f037e4b
APM_Control: 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
Lucas De Marchi
4a595bd797
APM_Control: use ARRAY_SIZE
10 years ago
Michael du Breuil
e45f3537cf
APM_Control: Remove duplicate include statements
10 years ago
Michael du Breuil
aa04c81e3c
APM_Control: Fix a typo in the docstring for YAW2SRV_SLIP
10 years ago
Michael du Breuil
6cd81ae1fb
APM_Control: Add PID logging to yaw controller
10 years ago
Andrew Tridgell
131b345ccc
APM_Control: cleanup some coverity warnings
10 years ago
Andrew Tridgell
5e80f0cf72
APM_Control: allow for multiple stop calls in autotune
10 years ago
Andrew Tridgell
02aa6983a7
APM_Control: fixed FF handling in steering controller
10 years ago
Andrew Tridgell
5105d510b8
APM_Control: added pid_info and FF to steering controller
...
used for realtime ground steering tuning
10 years ago
Andrew Tridgell
86a3bca88c
APM_Control: added FF parameters to roll and pitch controllers
...
these are much easier to tune with the new PID_TUNING messages
10 years ago
Andrew Tridgell
216a78a9f0
APM_Control: added get_pid_info() interface
10 years ago
Peter Barker
9ae85ed9ab
APM_Control/AP_AutoTune: use 64-bit timestamps for dataflash logs
10 years ago
Andrew Tridgell
d8cd986696
APM_Control: fix for HAL_SITL rename
10 years ago
Tom Pittenger
7132b39dcf
AP_AutoTune: fix compile warnings re float constants
10 years ago
Andrew Tridgell
ec70042d25
APM_Control: raise default IMAX to 3000
...
on the first flight users often need more I gain to overcome poor
choices for the P gain
10 years ago
Andrew Tridgell
3b6c732b3b
APM_Control: changed default I gain for roll/pitch controllers to non-zero
...
too many people are still not tuning. At least this will give them a
chance to get their aircraft back in a cross-wind
10 years ago
Andrew Tridgell
8f3dad0d1c
APM_Control: increase available range for roll and pitch
11 years ago
Andrew Tridgell
198ada2b42
APM_Control: avoid some float conversion warnings
11 years ago
Andrew Tridgell
eb1fb63e57
APM_Control: added logging of parameter changes in AUTOTUNE
...
this will make it easier to analyse logs
11 years ago
Andrew Tridgell
871d0c0e44
APM_Control: moved the log structure to ArduPlane core
...
this allows it to work with old style .log files
11 years ago
Andrew Tridgell
7f9a9107c7
APM_Control: logging_started needs to be static
...
prevents writing log headers twice
11 years ago
Andrew Tridgell
b4c5f31b17
APM_Control: reduce the number of parameter saves in autotune
...
don't save a parameter unless it has changed by 0.1%
11 years ago
Paul Riseborough
ccc7d36493
APM_Control: Modify D and I gain scaling
11 years ago
Andrew Tridgell
ae7293ef68
APM_Control: added support for AUTOTUNE_LEVEL
...
10 levels of tune, for what type of tune the user wants
11 years ago
Andrew Tridgell
df192a9efd
AP_AutoTune: lower min tau to 0.2
11 years ago
Andrew Tridgell
3343af602e
APM_Control: fixed saving of new rate gains
11 years ago
Andrew Tridgell
b9a8ef3b51
APM_Control: fixed a bug in autotune servo saturation check
...
its in degrees not centi-degrees
11 years ago
Andrew Tridgell
64170d0f04
APM_Control: added dataflash logging to autotune
11 years ago
Andrew Tridgell
50fc75917e
APM_Control: first version of APM_Control autotuning
...
this adds autotune to the roll/pitch controllers using a very simple
mechanism. The plan is that this provides a framework which Paul and
Jon will build upon.
11 years ago
Don Gagne
1db3c6e688
AP_Arming: param doc fixes
...
These were confusing the parser, or just incorrect
11 years ago
Don Gagne
e68cf2d1c5
Plane: Fix parameter documentation
...
Fixes some problems with incorrect docs which would in turn generate
bad amp.pdef.xml files for ground stations.
merge with below
11 years ago
Paul Riseborough
779e32d79f
AP_Control : Add true airspeed compensation to pitch controller
...
turn rate to pitch rate calculation should use true airspeed
11 years ago
Andrew Tridgell
9b5cae2134
APM_Control: reduce roll compensation in pitch controller by cos(pitch)
...
This reduces the use of the pitch compensation when in a steep climb
or dive
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
11 years ago
Andrew Tridgell
2930184680
AP_YawController: update for AHRS API change
11 years ago
Paul Riseborough
97cdd36dd8
APM_Control : Moved scaler on roll and pitch integrator to be before integrator
...
This means that the value of aileron and elevator trim offset won't change with airspeed
11 years ago
Andrew Tridgell
64c8cb4739
APM_Control: improved auto docs for AP_SteerController
12 years ago
Andrew Tridgell
39bfd809c2
APM_Control: disable integrator below minimum speed
...
this reduces the impact on initial takeoff
12 years ago
Andrew Tridgell
58187ea449
APM_Control: change minspeed on steering controller to 1.0
12 years ago
Andrew Tridgell
5abf060c41
APM_Control: enable integrator in ACRO rate controller
...
this work better for unlocked mode
12 years ago
Andrew Tridgell
d27f5e89d7
APM_Control: remove public AP_PitchController::get_coordination_rate_of|cat()
12 years ago
Andrew Tridgell
bd848a6a7f
APM_Control: added rate and angle steering controllers
12 years ago
Andrew Tridgell
0784c01f19
APM_Control: added STEER2SRV_MINSPD
...
this is the assumed min speed when in STEERING or AUTO mode
12 years ago
Andrew Tridgell
af2d7232c5
APM_Control: make the default time constant 0.75
...
thanks to Tom for the testing!
12 years ago