Commit Graph

7626 Commits

Author SHA1 Message Date
Iampete1 e97569db8c copter: flowhold: move to constant dt filter and provide dt in runtime cutoff frequency update 2024-08-20 09:09:41 +10:00
Gone4Dirt aabaa0939a Copter: Move heli logging down into motors 2024-08-14 23:39:01 -04:00
Iampete1 c0d2c15ac8 Copter: autotune: allow access to autotune object and call through for disarm and aux function 2024-08-13 08:57:44 +09:00
Leonard Hall 16aa2ed4f8 Copter: Fix payload place bug 2024-08-08 18:16:12 +10:00
Peter Barker 42cf3aed97 Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED 2024-08-07 18:09:23 +10:00
Peter Barker cbbb6881e2 Copter: use mavlink enumeration to clarify do_change_speed implementation 2024-08-07 17:50:03 +10:00
Peter Barker 8f7cde12ab ArduCopter: add logging for land detector 2024-08-06 09:28:37 +10:00
Randy Mackay 963addd4f5 Copter: 4.5.5 release notes 2024-08-01 15:21:51 +09:00
Peter Barker 5f40319a3b ArduCopter: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
Peter Barker 58f33087ac Copter: correct skyviper-v2450 compilation 2024-07-30 10:30:44 +10:00
Peter Barker 86faf1ac52 ArduCopter: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 3c1021d208 Tools: add documentation for SIM_ENGINE_FAIL and SIM_ENGINE_MUL 2024-07-30 09:21:26 +09:00
Peter Barker 6881f42cba Copter: add a Mode method to disable crash check
prevents looking for specific modes in the crash checker
2024-07-30 09:21:26 +09:00
muramura 0e7a5ef520 Copter: Make multiple decisions into a SWITCH statement 2024-07-30 08:16:27 +09:00
Randy Mackay 8f51eafc82 Copter: 4.5.5-beta2 release notes 2024-07-29 15:18:17 +09:00
muramura ace57047fa Copter: Distinguish preprocessor processing 2024-07-25 10:56:03 +10:00
Leonard Hall 1012be95d8 Copter: Ground oscillation gain reduction 2024-07-25 09:50:35 +10:00
Luca Pescante 0583e85145 Copter: update "CH6 tuning" comments 2024-07-25 09:40:13 +10:00
Luca Pescante a519597249 Copter: find channel option "Transmitter Tuning" instead of CH6 2024-07-25 09:40:13 +10:00
Luca Pescante 028017e38e ArduCopter/RC_Channel: add option 219
(Transmitter Tuning)
2024-07-25 09:40:13 +10:00
muramura 05d8b0db8a Copter: Clearly show the preprocessor 2024-07-24 18:04:12 +09:00
muramura f9bc247121 Copter: correct comment about scope of is_landing and is_taking_off 2024-07-24 18:31:00 +10:00
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
bnsgeyer bbaf557457 Copter: implement suggested changes 2024-05-14 23:16:52 -04:00
bnsgeyer 9e4340ba33 Copter: change position controller method for making inputs 2024-05-14 23:16:52 -04:00
bnsgeyer 75d9163571 Copter: fixes for suggested changes 2024-05-14 23:16:52 -04:00
bnsgeyer d0dfe86a4b Copter: incorporate comment to remove unnecessary function 2024-05-14 23:16:52 -04:00
bnsgeyer f74ccd569a Copter: Added new input types for SID_AXIS parameter 2024-05-14 23:16:52 -04:00
bnsgeyer d0cf2240dc Copter: clean up 2024-05-14 23:16:52 -04:00
bnsgeyer ad75c0c1d8 Copter: simplification of system ID 2024-05-14 23:16:52 -04:00
bnsgeyer 1bf865e4eb Copter: add support for sysid of vel and pos loops 2024-05-14 23:16:52 -04:00
Randy Mackay 5c50da7f9f Copter: 4.5.2 release notes 2024-05-14 16:48:02 +09:00
muramura 07a5f61782 Copter: Change from enum to class 2024-05-07 20:27:15 +09:00
Iampete1 f54f7d7dc6 Copter: `euler_rate_to_ang_vel` takes Quaternion attitude 2024-05-07 08:34:40 +09:00
haarshitgarg a13639d9d8 ArduCopter: enabled sending waypoints from a companion computer to ardupilot for copter and rover
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-05-02 09:08:34 +09:00
Andrew Tridgell e417be0492 Copter: update release notes 2024-05-01 17:24:10 +09:00
Randy Mackay cc3bb402e4 Copter: 4.5.2-beta1 release notes 2024-05-01 17:24:10 +09:00
Peter Barker 0d7925059c ArduCopter: move handling of AP_Radio RC input down into AP_RCProtocol 2024-05-01 17:51:49 +10:00
Leonard Hall 127f1296de Copter: Land Detector: add hash define for LAND_DETECTOR_VEL_Z_MAX 2024-04-30 10:21:29 +09:00
lthall 797dfdd0ed Copter: Land Detector: Include angle checks 2024-04-30 10:21:29 +09:00
Iampete1 5b9848c5e1 Copter: support `DO_RETURN_PATH_START` 2024-04-30 08:03:39 +09:00
Randy Mackay 6f6bc21e2e Copter: guided mode fix for landing detector internal error 2024-04-23 15:11:24 +09:00
Peter Barker b173662b3c ArduCopter: remove Baro accumulate API
no backend actually needs to be prodded, everything is done on timers
2024-04-18 09:19:20 +10:00
Peter Barker 00433a2625 ArduCopter: move Arming, Beacon and RC_Mapper into ardupilotwaf.py
these were built for all vehicles, so put them in the common list
2024-04-17 18:11:46 +10:00
Peter Barker 5b69ff6e65 Copter: send RC_CHANNELS in SITL in compassmot loop
When setting an RC value in autotest, we require the change to appear in this message
2024-04-16 19:14:38 +10:00
Peter Barker d198c3e13d Copter: emit system time during compassmot on SITL
the autotest framework heavily relies on system_time being emitted -
because we're not running the main loop during compassmot it gets stuck
if we don't do this
2024-04-16 19:14:38 +10:00
muramura 0f0023e62d Copter: Get the flight mode name display from the name method 2024-04-16 09:08:35 +09:00
Peter Barker 5de6e20ecd Copter: factor out methods for guided-mode commands 2024-04-14 13:19:07 +10:00
Peter Barker cddc590b8b Copter: move #ifs to outside case statements in do_aux_function
this means a user will get a warning if they try to run a function and it isn't supported
2024-04-11 18:35:27 +10:00
Peter Barker b849fbbcca Copter: autoyaw: correct units returned by look_ahead_yaw
there are other methods on the autoyaw object which make it clear that they're working in cd, and others in there that work in degrees.  This method doesn't specify cd yet returns in that unit.

Change the method and state variable to store in degrees (as our naming standards suggest)
2024-04-11 10:24:58 +10:00
Peter Barker 18850fdd1f ArduCopter: add option to flight mode pause/resume via aux function 2024-04-11 10:17:35 +10:00