Peter Barker
c0e8d319c6
Copter: make surface tracking adjust_climb_rate take a float
...
Its callers all pass in floats and we return a float, so stop going via
an int16_t
6 years ago
Peter Barker
b0428f0fe8
Copter: make surface_tracking a class, various functions methods
6 years ago
Randy Mackay
01909cf4c8
Copter: zigzag mode gets terrain following support
6 years ago
Randy Mackay
89eb876faf
Copter: move surface tracking variables into structure
6 years ago
Randy Mackay
33a57361bd
Copter: reduce args passed to get_surface_tracking_climb_rate
...
The same arguments are always passed in
6 years ago
Randy Mackay
a732dfed6d
Copter: minor format fixes to get_pilot_desired_cilmb_rate
6 years ago
Peter Barker
8441542a52
Copter: remove climb_rate cache of inertial_nav.get_velocity_z
...
There were only two users of it and dozens of places using
get_velocity_z
6 years ago
Peter Barker
c1c71fec23
Copter: move Mode functions into mode.cpp from Attitude.cpp (NFC)
6 years ago
Peter Barker
34d9ce27af
Copter: make get_pilot_desired_throttle a method on Mode
6 years ago
Michael du Breuil
7e1ed948f5
Copter: Cope with AC_PosControl renaming
6 years ago
Randy Mackay
b5d722245a
Copter: minor comment fix
7 years ago
Peter Barker
4e3bbe9311
Copter: move sanity check for rangefinder alt to within protected func
...
get_surface_tracking_climb_rate can do an additional check....
7 years ago
Peter Barker
ab68e4fe8b
Copter: log quiet-nan for rangefinder-desired-alt when not using it
7 years ago
Peter Barker
8648db06b4
Copter: create autoyaw.cpp from all the bits of Copter::Mode::AutoYaw
7 years ago
Peter Barker
948b90ed97
Copter: rename roi_WP to just roi
...
A Vector3f is not a waypoint.
This should really be "Point Of Interest" rather than "Region Of
Interest"
7 years ago
Peter Barker
ba8b3e2415
Copter: create an AutoYaw helper object to hold auto-yaw state
7 years ago
Leonard Hall
9544b1763b
Copter: replace smoothing gain with AC_AttitudeControl::set_input_tc
7 years ago
Ebin
20995b909f
Copter: Moved get_pilot_desired_lean_angles to mode.cpp
7 years ago
Andrew Tridgell
af4f0c29ba
Copter: enable TMODE (ToyMode) support
...
this is for the skyviper button based transmitter control
7 years ago
Randy Mackay
8d6f8e4d9c
Copter: move pos-control pids to pos-control library
7 years ago
Randy Mackay
e85b1ac740
Copter: pass dt to avoidance calls
7 years ago
Peter Barker
7b637334f4
Copter: eliminate mode_has_manual_throttle
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
bd027e4fcb
Copter: Move some common functions to AP_Math (NFC)
7 years ago
ChrisBird
caaeae3d0a
Copter: Separate max ascent and descent speeds
...
Added equivalent parameters to WPNAV_SPEED_UP and WPNAV_SPEED_DN
New parameters named:
PILOT_SPEED_UP (technically renamed PILOT_VELZ_MAX)
PILOT_SPEED_DN
Removed parameter PILOT_VELZ_MAX (technically renamed to PILOT_SPEED_UP).
Flight Modes impacted:
ALTHOLD
AUTOTUNE
CIRCLE
LOITER
POSHOLD
SPORT
TAKEOFF
Update a section in GUIDED mode but I don't think it is ever used but update just in case.
It will use the PILOT_SPEED_UP for ascending max velocity. For down it will check if
it is 0, if so then it will PILOT_SPEED_UP instead, if non zero it will use PILOT_SPEED_DN.
This retains current behavior and gives the flexibility to change it if desired.
7 years ago
Peter Barker
1d70a337dd
Copter: remove unused desired_climb_rate variable
8 years ago
Randy Mackay
cb1f7ba4bb
Copter: remove setting position control's altitude max
...
AC_Avoid now takes responsibility for enforcing the alt limit and accesses inertial nav's limit directly
8 years ago
Randy Mackay
b15d341850
Copter: add avoidance adjusted climb rate
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Andrew Tridgell
bcea3ac8d4
Copter: handle rangefinder glitches in alt tracking
...
this handles glitches from the rangefinder when tracking the
ground. It requires 3 readings in a row to settle on a new target
altitude
thanks to discussions with Leonard and Randy
8 years ago
Leonard Hall
0a6714f4ae
Copter: rename variable ROLL_PITCH_YAW_INPUT_MAX
...
No functional change
8 years ago
Leonard Hall
2698f14d39
Copter: apply yaw expo to all modes
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
Leonard Hall
fec24437f2
Copter: load accel throttle I term from attitude controller input
...
Previously we loaded up the I term from the pilot's input but a more reliable method is to get what was passed into the attitude controller. In particular the addition of the acro-thr-mid parameter means the pilot's input must be interpreted differently for different flight modes.
8 years ago
Leonard Hall
5c47f3f9e5
Copter: add acro throttle and yaw expo and smoother manual pilot throttle
8 years ago
Randy Mackay
35864c6226
Copter: move check_ekf_reset to ekf_check.cpp
...
No functional change
8 years ago
Randy Mackay
f4fee69f29
Copter: add div-by-zero check to get_pilot_desired_throttle
...
This divide by zero is only possible if there was a coding error in the setup of the throttle channel but added to make Covarity happy
9 years ago
Randy Mackay
c3d71f733c
Copter: remove get_takeoff_trigger_throttle
...
get_pilot_desired_climbrate can be used instead.
9 years ago
Randy Mackay
d1e257d5b6
Copter: remove unused get_throttle_pre_takeoff
9 years ago
Randy Mackay
b61ae1a4a1
Copter: log EKF yaw reset event
9 years ago
Leonard Hall
7d54c268f6
Copter: consolidate input_euler_angle calls to use smoothing gain
...
Previously we had _smooth and non-smooth methods in the attitude
controller but as part of the move to quaternions these have been replaced
by a single call which always takes a smoothing gain
9 years ago
Leonard Hall
48eb4cf674
Copter: remove THR_MID
9 years ago
Leonard Hall
e9d8a28ec0
Copter: AP_Motor's throttle_hover replaces throttle_average
9 years ago
Randy Mackay
8171532dc5
Copter: allow rangefinder to be disabled from definition
9 years ago
Randy Mackay
5ac13c0355
Copter: move rangefinder variables into structure
...
moved in rangefinder_alt, rangefinder_alt_health and rangefinder_enabled
9 years ago
Randy Mackay
7689315ba2
Copter: rename sonar to rangefinder
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
Randy Mackay
a5c55c3fbd
Copter: fix get_non_takeoff_throttle
...
The throttle_mid parameter (for historic reason) is interpreted as a value that includes throttle_min. This means we must subtract the throttle_min value from it when converting it to a throttle in the 0 to 1 range.
9 years ago
Randy Mackay
3c3b74adc8
Copter: remove slow_start from takeoff
9 years ago
Leonard Hall
7bcdc76655
Copter: get_pilot_desired_climb_rate accepts control_in as 0 to 1000
...
Previously the input was expected to be throttle_min (i.e. 130) to 1000
9 years ago
Leonard Hall
20debc962a
Copter: update get_throttle_pre_takeoff for 0 to 1 range
9 years ago