Jonathan Challinger
630e5378da
AC_PosControl: add get_horizontal_error
9 years ago
Andrew Tridgell
d1b28aaed9
AC_AttitudeControl: fixed factor of 1000 error in init_takeoff
9 years ago
Leonard Hall
dcbb071c07
AC_PosControl: Move hover throttle calculation to AP_Motors
9 years ago
Leonard Hall
1639e22b74
AC_AttitudeControl: set desired_vel for reporting purposes even when not used
9 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Andrew Tridgell
23a64e1227
AC_AttitudeControl: fixed accel limit trigonometry
...
Leonard had mentioned the limit should be tan(angle) not sin(angle). I
noticed this one was wrong.
9 years ago
Leonard Hall
c64a505906
AC_PosControl: relax_alt_hold_controllers accepts throttle in 0 to 1 range
9 years ago
Leonard Hall
15be80a25d
AC_PosControl: accel_to_throttle outputs 0 to 1
9 years ago
dgrat
5148e41c1a
AP_Math: Cleaned macro definitions
...
Moved Definitions into a separate header. Replaced PI with M_PI and
removed the M_PI_*_F macros.
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Caio Marcelo de Oliveira Filho
ea08b6115d
AC_AttControl: use millis/micros/panic functions
9 years ago
Randy Mackay
c9340dbeb6
AC_PosControl: run velocity controller z-axis at 400hz
9 years ago
Randy Mackay
dbc8ce1d69
AC_PosControl: default z-axis controller to 400hz
...
No functional change as vehicle code always sets it explicitely
9 years ago
Randy Mackay
323a527734
AC_PosControl: velocity controller uses feed-forward althold
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
Randy Mackay
550ba478c9
AC_PosControl: add shift_pos_xy_target
9 years ago
Randy Mackay
ee0abb1750
AC_PosControl: add set_jerk_xy
9 years ago
Randy Mackay
895a40893d
AC_PosControl: use_desvel_ff flag added
...
This allows turning on/off desired velocity feedforward without setting desired_vel.z to zero. Setting desired_vel.z to zero has the side effect of disrupting the landing detection which needs to know if we are trying to descend
9 years ago
Leonard Hall
aec66c5db6
AC_PosControl: faster z-axis slowdown when over speed
9 years ago
Leonard Hall
245f7ce268
AC_PosControl: allow desired vel z to be above speed limit
9 years ago
Leonard Hall
f55c31a157
AC_PosControl: add alt hold without feed forward
9 years ago
Leonard Hall
cf5db31053
AC_PosControl: allow limiting lean angle to avoid alt loss
10 years ago
Leonard Hall
b58cc7ea8d
AC_PosControl: move accel constraint to accel_to_lean_angles
10 years ago
Gustavo Jose de Sousa
d49f10d2e5
AC_AttitudeControl: 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
Robert Lefebvre
14882bc6a8
AC_AttitudeControl: Remove unused takeoff jump #define
10 years ago
Randy Mackay
d2f93dd379
AC_PosControl: init flags
...
Resolves warning from Coverity
10 years ago
Randy Mackay
382f5d087f
AC_PosControl: explicitly set set_alt_target_from_climb_rate params
10 years ago
Randy Mackay
11fee21f06
AC_PosControl: init accel_last_z_cms
10 years ago
Andrew Tridgell
521dae1c65
AC_AttitudeControl: use set_desired_rate() on PID controllers
...
this sets them up for logging of PIDs
10 years ago
Robert Lefebvre
e87ca6de6f
AC_PosControl: Change motors.get_throttle_out
...
to get_throttle to follow function renaming in AP_Motors
10 years ago
Randy Mackay
d1808c645d
AC_PosControl: recalc leash length on speed or accel change
...
This resolves an issue in which do-set-speed would not take effect until
one waypoint too late in a mission.
10 years ago
Andrew Tridgell
872583f441
AC_AttitudeControl: removed fast_atan
10 years ago
Andrew Tridgell
84ac721340
AC_AttitudeControl: use M_PI_F instead of (float)M_PI
10 years ago
Andrew Tridgell
326b0b33ea
AC_AttitudeControl: revert AP_Math class change
10 years ago
Tom Pittenger
1bca81eaed
AC_AttitudeControl: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
10 years ago
Randy Mackay
31edd6a72b
AC_PosControl: add_takeoff_climb_rate method
...
This function simply increments the current altitude target given a
climb rate and dt
10 years ago
Jonathan Challinger
12957867fd
AC_PosControl: fix thr twitch when changing modes
10 years ago
Jonathan Challinger
738b1967ad
AC_PosControl: use LowPassFilterVector2f
10 years ago
Jonathan Challinger
87500d9d70
AC_AttitudeControl: use new lowpass filter
10 years ago
Leonard Hall
c2a6a0a9e2
AC_PosControl: add accel filter parameter
10 years ago
Leonard Hall
a632a57d79
AC_PosControl: accessors to log z-axis vel and accel
10 years ago
Leonard Hall
0aca3c4be6
AC_PosControl: add relax Alt Hold controllers
10 years ago
Leonard Hall
7cb3c4ba39
AC_PosControl: add feed forward to Alt Hold
10 years ago
Jonathan Challinger
3e0dab7b2d
AC_PosControl: remove accel error filter and set throttle output filter instead
10 years ago
Jonathan Challinger
7abd02baf2
AC_PosControl: change int32/int16 to float in accel_to_throttle
10 years ago
Jonathan Challinger
d14893fcd5
AC_PosControl: don't limit throttle any more
10 years ago
Leonard Hall
48fb487a8c
AC_AttitudeControl: Formatting fix
10 years ago
Leonard Hall
9a3f48cc1f
AC_PosControl: ensure throttle output above zero
10 years ago
Randy Mackay
bb74b8dec8
AC_PosControl: fix twitch when entering RTL
...
Also removed slow_cpu flag
Fixed bug in update to _accel_target_jerk_limited.
10 years ago
Jonathan Challinger
88ec13b10d
AC_PosControl: fix build
10 years ago