Randy Mackay
2c5f9422d4
Copter: log event if pilot cancels land
...
Also add definition for throttle value that cancels land
9 years ago
Jonathan Challinger
8965185587
Copter: add "high throttle cancels landing" option
9 years ago
Jonathan Challinger
3800c66f07
Copter: add RTL_CONE_SLOPE
9 years ago
Jonathan Challinger
dcd16696a2
Copter: refactor RTL to compute full path on initialization
9 years ago
Jonathan Challinger
dfab21171b
Copter: call renamed functions in AC_AttitudeControl
9 years ago
Jonathan Challinger
9d8b0f3d58
Copter: call renamed functions in AC_AttitudeControl
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
Jonathan Challinger
5086168b03
Copter: add RTL_SPEED parameter
9 years ago
Randy Mackay
05246ea0c7
Copter: fix RTL compile error when rally disabled
...
Thanks to derekxm for finding this
9 years ago
Jonathan Challinger
a18f71b29e
Copter: bug fix to RTL_ALT_MIN feature
...
commited by Randy
10 years ago
Randy Mackay
35a924703f
Copter: change multirotor comments to multicopter
...
No functional change
10 years ago
Robert Lefebvre
0a69c13b1d
Copter: Fix helicopter ground stabilization in Auto, Brake, Circle, Guided, Land and RTL modes.
10 years ago
Randy Mackay
063faa0383
Copter: add RTL_CLIMB_MIN
...
Vehicle climbs at least this many cm when entering RTL
10 years ago
Jonathan Challinger
fb82ac3eb3
Copter: rework land detector logic
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Robert Lefebvre
316196b12f
Copter: Finish RCMap fix.
...
All g.rc_X references changed to channel function pointers.
10 years ago
Andrew Tridgell
554de1f2d7
Copter: added channel objects named after input function
...
this follows the pattern used in plane and rover
10 years ago
Randy Mackay
09a98b89b7
Copter: add RTL to front of RTLState enum values
...
This removes the confusing Land enum value which also appears in the
flight mode enum
10 years ago
Andrew Tridgell
d8146ff3f6
Copter: revert AP_Math class change
10 years ago
Tom Pittenger
20dc48ed16
Coter: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
10 years ago
Jonathan Challinger
fb96335b46
Copter: get_RTL_alt returns alt above home
10 years ago
Robert Lefebvre
8610da7fbc
Copter: autopilot modes to check for motor interlock status
10 years ago
Randy Mackay
64629914a4
Copter: fix RTL alt when no using Rally points
10 years ago
David Dewey
0545185218
Copter: RTL at no less than 2m above home alt
10 years ago
Jonathan Challinger
91a03ae0e7
Copter: add PILOT_THR_FILT and call set_throttle_out functions with that value
10 years ago
Jonathan Challinger
b27b9dd86e
Copter: use new throttle interface
10 years ago
Jonathan Challinger
be8c118b63
Copter: change altitude fence to work on home altitudes instead of origin altitudes
10 years ago
Jonathan Challinger
0f9e50d61c
Copter: fix rtl completion altitude
10 years ago
Randy Mackay
77d8f88e45
Copter: fence, rtl, land use alt-above-home
10 years ago
Jonathan Challinger
2cb63dc792
Copter: don't assume home is at the origin
10 years ago
Randy Mackay
1819bd48f4
Copter: remove home_is_set checks from Loiter, PosHold, RTL
...
This allows these flight modes to potentially operate even when the
vehicle has never had a GPS lock.
Potentially we should replace this with a check that the EKF's origin
has been set
10 years ago
Randy Mackay
4185d17915
Copter: fix to RTL, PosHold and Loiter's use of filter status
10 years ago
Randy Mackay
199dc3454d
Copter: replace GPS_ok with position_ok
...
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
10 years ago
Randy Mackay
a4f71e5946
Copter: replace inav's position_ok with get_filter_status
10 years ago
Randy Mackay
05fedbf98f
Copter: minor formatting fixes
10 years ago
Jonathan Challinger
91bff63267
Copter: Fix LAND overshoot issue
10 years ago
priseborough
963cc4d60a
Copter: Add velocity gain scaler to interfaces
...
Allows nav gain to be scaled to compensate for optical flow noise
10 years ago
priseborough
9844dacf40
Copter: Add EKF ground speed limit to loiter speed control
...
This is required to prevent the speed controller saturating the optical flow sensor during low altitude flying.
10 years ago
Jonathan Challinger
c7a38c4350
Copter: use force_descend option on auto landings
10 years ago
Jonathan Challinger
8e3d163c3d
Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero
10 years ago
Randy Mackay
1c11a91ec2
Copter: rename land_maybe_complete function
11 years ago
Randy Mackay
6951a20fb0
Copter: soften loiter target when maybe landed
...
Applies to auto's land, land, loiter, pos hold and rtl flight modes
11 years ago
Randy Mackay
224122958c
Copter: reduce throttle to min once landed in RTL
...
This catches the case where the vehicle lands but the user doesn't
immediately put the throttle to zero. Before this check it would
continue to attempt to hold it's
11 years ago
Randy Mackay
0a88281a76
Copter: bug fix to rally point alt
...
rally point library uses absolute altitudes, we were passing in relative
altitudes which caused the vehicle to climb before heading to the rally
point
11 years ago
Jonathan Challinger
5b36e65cb9
Copter: Add parameter LAND_REPOSITION to enable/disable user input during auto-mode landings and descents
11 years ago
Randy Mackay
08801eebf2
Copter: integrate AttControl's set_yaw_target_to_current_heading
11 years ago
Randy Mackay
77d5d682c1
Copter: integrate init_targets rename to relax_bf_rate_controller
...
Also remove unnecessary init_targets from flight mode init functions.
11 years ago
Randy Mackay
d5a0ca4f3c
Copter: integrate init_loiter_target name change
11 years ago
Andrew Chapman
8640e11728
Copter: bug fix rally point landing target
...
was drifting toward home by some distance as (0,0,0) was hard-coded in
control_rtl.pde. Fixed, tested in SITL
11 years ago