Jonathan Challinger
8b886bc479
AC_AttitudeControl: minor comment changes and reorganization
9 years ago
Jonathan Challinger
edda7e4e1e
AC_AttitudeControl: keep _att_target_euler_deriv_rads updated in euler_angle_roll_pitch_yaw
9 years ago
Jonathan Challinger
1afab89991
AC_AttitudeControl: extensive renaming and recommenting
9 years ago
Jonathan Challinger
06c8457efd
AC_AttitudeControl: rename and modify frame_conversion functions to follow conventions
9 years ago
Jonathan Challinger
7330de86e5
AC_AttitudeControl: change internals to use radians instead of centidegrees
9 years ago
Andrew Tridgell
58f0abaf4c
AC_AttitudeControl: fixed one usage of zero accel limits
...
in other places zero accel limit means no limit
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
Andrew Tridgell
d8ee9feaac
AC_AttitudeControl: fixed external tail gyro with no flybar
...
this sets up the tail pass-through for acro mode
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
Randy Mackay
4b41710261
AC_AttControl: minor comment fix
9 years ago
Robert Lefebvre
1bc13fb9c0
AC_AttitudeControl_Heli: Add Hover Roll Trim Scalar
9 years ago
Robert Lefebvre
0b33ef3862
AC_AttitudeControl: Add Hover Roll Trim functionality for helicopters.
9 years ago
Robert Lefebvre
62864c9e2b
AC_AttitudeControl_Heli: Remove commented out Cyclic Cross-Coupling code. Will resurrect in future.
9 years ago
Robert Lefebvre
b8ce23970d
AC_AttitudeControl_Heli: Implement Pirouette Compensation
9 years ago
Robert Lefebvre
f39ac7c900
AC_AttitudeControl_Heli: Add initialization of _flags_heli members
9 years ago
Jonathan Challinger
6784fd8625
AC_AttitudeControl: reserve parameter IDs
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
16a0281c92
AC_PosControl: remove unused set_vel_target
9 years ago
Randy Mackay
ee0abb1750
AC_PosControl: add set_jerk_xy
9 years ago
Randy Mackay
73f4533995
AC_PosControl: minor comment update
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
Andrew Tridgell
e3f7b002c2
AC_AttitudeControl: use non-flybar leaky I handling
...
The standard leaky-I handling works fine on a flybar, so better not to
have a special case that isn't needed
10 years ago
Leonard Hall
c8872e082d
AC_AttControl: rename set_throttle_out parameter
...
No functional change
10 years ago
Leonard Hall
cf5db31053
AC_PosControl: allow limiting lean angle to avoid alt loss
10 years ago
Leonard Hall
29ff5035b4
AC_AttControl: limit lean angle from throttle
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
Randy Mackay
0bf1d04172
AC_AttControl: relax earth frame rate targets along with bf
10 years ago
Randy Mackay
157c97447d
AC_AttControlHeli: init passthrough_yaw
10 years ago
Randy Mackay
8b4805bfcb
AC_AttControl_heli: add MotorsHeli include
10 years ago
Randy Mackay
bf2bf2e3fa
AC_AttControl_Multi: new multirotor specific attitude control class
10 years ago
Randy Mackay
93dd7dd970
AC_AttControl: get_boosted_throttle purely virtual
10 years ago
Robert Lefebvre
14882bc6a8
AC_AttitudeControl: Remove unused takeoff jump #define
10 years ago
Andrew Tridgell
eeb97800ae
AC_AttitudeControl: allow for tail pass-thru in ACRO mode
...
this allows for all channels to be passed through
10 years ago
Randy Mackay
1e3e65e443
AC_AttControl: add shift_ef_yaw_target
...
This allows shifting the target heading in case the EKF shifts it's
heading estimate
10 years ago
Leonard Hall
cfc388934b
AC_AttControl: add set_accel_roll_max
...
Also equivalents for pitch and yaw
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
6ea60aa662
AC_PosControl: remove default from set_alt_target_from_climb_rate
10 years ago
Randy Mackay
11fee21f06
AC_PosControl: init accel_last_z_cms
10 years ago
Robert Lefebvre
4da54783fd
AC_AttitudeControl_Heli: Semantic Change. Motor Runup to Rotor Runup.
10 years ago
Robert Lefebvre
18bac524a3
Copter: TradHeli, change Rate FF LPF to 10Hz
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