Commit Graph

7554 Commits

Author SHA1 Message Date
Randy Mackay efc7a9071a Copter: SmartRTL mode restores point if interrupted 2024-07-24 17:22:44 +10:00
Peter Barker 6dac230ccb ArduCopter: correct compilation with AP_RRSI_ENABLED false
Co-authored-by: David Buzz <davidbuzz@gmail.com>
2024-07-24 09:11:39 +10:00
Andrew Tridgell a371a3eb89 Copter: fully honour FENCE_OPTION to disable mode changes
when the user has chosen to disallow mode change during fence breach
it should be fully implemented, without a landing exception.

as requested by Pete, and discussed on dev call
2024-07-24 08:24:06 +10:00
Andy Piper 51304848fc Copter: address minor review comments 2024-07-24 08:24:06 +10:00
Andy Piper ccfbfddf7e AC_Fence: address minor review comments 2024-07-24 08:24:06 +10:00
Andy Piper 2877472f27 Copter: support FENCE_OPTIONS on copter 2024-07-24 08:24:06 +10:00
Andy Piper c40b80b100 Copter: don't print fence cleared messages when sitting on the ground 2024-07-24 08:24:06 +10:00
Andy Piper 8c0c84b7ab Copter: only disable fences when in landing phase 2024-07-24 08:24:06 +10:00
Andy Piper f8304e12d1 Copter: don't breach auto-fences when landed 2024-07-24 08:24:06 +10:00
Andy Piper 823ffb6c9e Copter: use generic fence handling in missions 2024-07-24 08:24:06 +10:00
Andy Piper eaf001c52f Copter: disable fences for landing by suppressing in the fence check rather than using a state machine 2024-07-24 08:24:06 +10:00
Andy Piper 738586342c Copter: notify when fence breach has cleared
output fence breach type
when switching mode without a fence action do not go into manual recovery
only recover if there is a fence action
implement auto-takeoff fence options
output user-friendly fence names
auto-enable fences on auto-takeoff
use fence enable_configured()
simplify message printing
2024-07-24 08:24:06 +10:00
Peter Barker 5f9abc0406 Copter: add and use private ModeAuto::option_is_enabled method 2024-07-17 17:55:42 +10:00
Leonard Hall 8260648a66 Copter: Payload Place: Fix first run abort 2024-07-16 10:47:58 +10:00
Peter Barker c986d93894 Copter: remove unused #if around rangefinder
the contents of this entire file are removed when AP_RANGEFINDER_ENABLED is false
2024-07-08 10:38:17 +10:00
bnsgeyer a3463235f4 Copter: add comment for make_safe_ground_handling 2024-07-03 08:29:19 -04:00
bnsgeyer 0647444ee3 Copter: make safe spool down for tradheli in autotune mode 2024-07-03 08:29:19 -04:00
Andy Piper 50e98fcbdf Copter: 4.5.5-beta1 release notes 2024-07-03 12:05:04 +09:00
Bill Geyer 2b95582d22 Copter: suggested clean up items
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-07-02 08:39:33 +09:00
bnsgeyer 0de2d6d482 Copter: ensure force flying with heli inverted flag 2024-07-02 08:39:33 +09:00
bnsgeyer a07b514ee8 Copter: allow tradheli inverted feature for stabilize, althold, loiter and auto modes 2024-07-02 08:39:33 +09:00
Peter Barker f64fcb78d3 ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
Leonard Hall b45b07d539 Copter: Fix rate input frame and clarify SET_ATTITUDE_TARGET 2024-06-26 11:22:54 +10:00
Peter Barker 180484e0a6 ArduCopter: add Copter flight option for requiring position to arm
this is not quite the same as requiring a good position to arm.
2024-06-25 11:06:10 +10:00
Iampete1 44710e8576 Copter: `update_target_location` reject alt frame change per plane 2024-06-25 08:29:57 +09:00
TsuyoshiKawamura a95b5bc0dc Copter: leave old_loc check instead of changing alt frame. 2024-06-25 08:29:57 +09:00
TsuyoshiKawamura 8346203d43 Copter: simplify update_target_location 2024-06-25 08:29:57 +09:00
rtos-kawamura 34748e681f Copter: simplify get_target_location
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-06-25 08:29:57 +09:00
TsuyoshiKawamura 5f5e0e65e0 Copter: implement get_target_location/update_target_location for lua 2024-06-25 08:29:57 +09:00
Peter Barker 3630e772b1 Copter: add Copter::option_enabled(...) replacing bitops vs copter.g2.flight_options 2024-06-20 10:59:14 +10:00
Peter Barker e34c91d1aa Copter: tidy use 'else if' to avoid unnecessary complication in location arm checks 2024-06-19 17:27:37 +10:00
richaravoil b782d24f87 ArduCopter: get MAV_STATE_BOOT on reboot
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-06-18 20:22:29 +09:00
chobits tai 3b24530cc2 Copter: fix MAV_CMD_CONDITION_YAW with relative angle when WP_YAW_BEHAVIOR = 0 2024-06-18 10:52:01 +09:00
Iampete1 4ab24dc015 ArduCopter: use new ModeReason::AUX_FUNCTION 2024-06-18 09:49:20 +10:00
Peter Barker 136e76e5ea Copter: tidy failsafe action handling
Mode changes will not work when mode not compiled in
2024-06-17 10:24:59 +10:00
muramura c376781c08 Copter: Clear the counter when rudder arm operation is disabled 2024-06-17 09:56:22 +10:00
muramura 9135f01a93 Copter: Move to the processing section to be used 2024-06-17 08:03:38 +09:00
Iampete1 1853f07793 ArduCopter: 4.5.4 release notes 2024-06-15 09:19:56 +09:00
Peter Barker 72fa6aa410 ArduCopter: clarify frame of get_location_from_origin_offset
... by renaming it get_location_from_origin_offset_NED
2024-06-11 14:57:56 +10:00
muramura da3a9c1cc6 Copter: Enable processing 2024-06-11 09:17:59 +10:00
muramura 5107cb495a Copter: Change the sub-mode description 2024-06-11 09:14:31 +10:00
Peter Barker cb869ef7f0 ArduCopter: remove defaulting of OSD_ENABLED
we do this in AP_OSD_config.h too so include ordering can break things badly
2024-06-04 16:32:26 +10:00
Andrew Tridgell 7551236854 ArduCopter: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker 1c5a026e3e Copter: ModeGuided: add an option_is_enabled method, use it 2024-05-29 13:11:58 +10:00
Randy Mackay 53f37a7457 Copter: 4.5.3 release notes 2024-05-28 13:19:03 +09:00
MattKear ae38c96a04 Copter: use new surface distance library 2024-05-28 09:55:36 +10:00
Peter Barker fcebd0c8c2 Copter: avoid Guided submode change unless can change Loc to Vec-from-origin
ordering problem between changing the submode and setting a valid position
2024-05-22 17:10:12 +09:00
Peter Barker 76950b5994 ArduCopter: remove redundant @Values from parameter documentation 2024-05-21 14:27:05 +10:00
Andrew Tridgell 2bcc2b296d ArduCopter: update release notes for 4.5.3-beta1 2024-05-16 11:04:32 +10:00
bnsgeyer a1a5647b7f Copter: change input_loiter_xxx to input_vel_xxx in sysid mode 2024-05-14 23:16:52 -04:00