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
Randy Mackay
11918869a5
Copter: RTL calls wp_and_spline_init
11 years ago
Randy Mackay
0665cf6b28
Copter: RTL alt should not be above fence alt
...
Resolves issue #435
If the altitude fence is enabled, when the vehicle RTLs it will return
at the lower of the RTL_ALT and the FENCE_ALT_MAX
11 years ago
Randy Mackay
05d9dc5cba
Copter: RTL always land if in radio failsafe
...
Resolves issue in which vehicle would get stuck at RTL_ALT_FINAL if
failsafe occured.
Also clear out pilot acceleration from loiter controller if failsafe
occurs during the final descent.
11 years ago
Randy Mackay
40650aeb68
Copter: roll and pitch nudging in RTL descent
11 years ago
Randy Mackay
ea64438ef9
Copter: RTL ensures heading is back to initial heading
...
This fixes the issue in which a short RTL_LOIT_TIME could cause the
vehicle's heading to be caught between it's heading when it arrived at
home and the initial armed heading. With this fix it now waits above
home until the timer has run out AND the heading is within 2degrees of
the initial armed heading.
11 years ago
Randy Mackay
e23115516d
Copter: disarm after completing RTL
...
Note that an RTL command executed in AUTO mode will also disarm when it
lands and pilot's throttle is put to zero and no further commands will
be executed. This is normally not an issue because missions generally
end with an RTL (instead of having the RTL in the middle) and a work
around is available in that the LAND command could be used instead of
RTL.
11 years ago
Andrew Chapman
fa3732ac6d
Copter: integrate AP_Rally
11 years ago
Jonathan Challinger
2601ac9959
Copter: Remove 80m altitude limit on RTL
11 years ago
Randy Mackay
8f946a3a8c
Copter: remove original_wp_bearing
...
To-Do: extend wpnav yaw control to only repoint nose towards waypoint if
it is more than 5m or 10m away
11 years ago
Randy Mackay
3ccd1ad170
Copter: integrate AttControl method name changes
11 years ago
Randy Mackay
2c1ec9d0c0
Copter: remove control_roll, pitch, yaw from control files
11 years ago
Randy Mackay
d3a126d078
Copter: integrate slew_yaw into control_auto
11 years ago
Randy Mackay
689e92eb33
Copter: control_rtl
11 years ago