Commit Graph

7650 Commits

Author SHA1 Message Date
Henry Wurzburg 7ee8893820 ArduCopter: update FS actions metadata with DO_RETURN_PATH_START 2024-12-17 09:34:49 +11:00
Randy Mackay 2df8559298 Copter: 4.6.0-beta2 release notes 2024-12-12 15:15:41 +11:00
Andy Piper 3ed6ada2e3 Copter: allocation failure on rate thread start 2024-12-04 07:45:05 +11:00
Andy Piper 96a70df75b Copter: address review comments 2024-12-04 07:45:05 +11:00
Andy Piper 3d43f2053f Copter: move RTDT logging to fast path
log after motor output in fast rate thread
2024-12-04 07:45:05 +11:00
Andy Piper c823374986 Copter: ensure decimated rates are never 0 in rate thread 2024-12-04 07:45:05 +11:00
Andy Piper dcf25200c6 Copter: correctly set fast rate thread rates 2024-12-04 07:45:05 +11:00
Andy Piper f84c855dd1 Copter: run copter attitude control with separate rate thread
run motors output at rate thread loop rate
allow rate thread to be enabled/disabled at runtime for in-flight impact testing
setup the right PID notch sample rate when using the rate thread the PID notches
 run at a very different sample rate
call update_dynamic_notch_at_specified_rate() in rate thread
log RTDT messages to track rate loop performance
set dt each cycle of the rate loop thread
run rate controller on samples as soon as they are ready
detect overload conditions in both the rate loop and main loop
decimate the rate thread if the CPU appears overloaded
decimate the gyro window inside the IMU
add in gyro drift to attitude rate thread
add fixed-rate thread option
configure rate loop based on AP_INERTIALSENSOR_FAST_SAMPLE_WINDOW_ENABLED
better rate loop thread decimation management
ensure fix rate attitude is enabled on arming
add rate loop timing debug
update backend filters rather than all the backends
provide more options around attitude rates
only log attitude and IMU from main loop
force trigger_groups() and reduce attitude thread priority
migrate fast rate enablement to FSTRATE_ENABLE
remove rate thread logging configuration and choose sensible logging rates
conditionally compile rate thread pieces
allow fast rate decimation to be user throttled
if target rate changes immediately jump to target rate
recover quickly from rate changes
ensure fixed rate always prints the rate on arming and is always up to date
add support for fixed rate attitude that does not change when disarmed
only push to subsystems at main loop rate
add logging and motor timing debug
correctly round gyro decimation rates
set dshot rate when changing attitude rate
fallback to higher dshot rates at lower loop rates
re-factor rate loop rate updates
log rates in systemid mode
reset target modifiers at loop rate
don't compile in support on tradheli
move rate thread into its own compilation unit
add rate loop config abstraction that allows code to be elided on non-copter builds
dynamically enable/disable rate thread correctly
add design comment for the rate thread

Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-12-04 07:45:05 +11:00
Iampete1 840507970e Copter: tell the gcs that the number of available modes has changed when registering a custom mode 2024-11-26 08:44:31 +09:00
Iampete1 551a7b8a20 Copter: `send_available_mode` report custom scripting modes 2024-11-26 08:44:31 +09:00
Iampete1 1ed57deab6 Copter: return `custom_mode_state` for registered modes 2024-11-26 08:44:31 +09:00
Iampete1 ad1bf0b59e Copter: `ModeAuto::do_guided` use `in_guided_mode` method 2024-11-26 08:44:31 +09:00
Iampete1 512f620e6e Copter: add support for adding a custom mode from scripting 2024-11-26 08:44:31 +09:00
snktshrma 20aeae1a09 ArduCopter: Enabled external control for takeoff
Co-authored-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-23 09:00:27 +09:00
Randy Mackay c03960cba4 Copter: 4.6.0-beta1 release notes
Co-authored-by: Bill Geyer <bnsgeyer@users.noreply.github.com>
Co-authored-by: Ryan <25047695+Ryanf55@users.noreply.github.com>
Co-authored-by: Thomas Watson <twatson52@mac.com>
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
2024-11-14 11:44:41 +09:00
Iampete1 67bca38151 Copter: add support for `AVAILABLE_MODES` msg 2024-11-13 20:11:50 +11:00
Peter Barker a2f35b3150 ArduCopter: make SRV_Channels::cork non-static
for symmetry with the push function
2024-11-13 19:47:49 +11:00
Peter Barker e29b6c3036 ArduCopter: create and use a singleton for SRV_Channels
avoid creation of static pointers to objects held within SRV_Channels
2024-11-13 19:47:49 +11:00
Peter Barker 8df33ce229 ArduCopter: add specific defines for sending of GPS mavlink messages 2024-11-13 19:40:19 +11:00
Peter Barker 6ee1d94ec7 Copter: reorder initialisation of member variables to make -Werror=reorder work 2024-11-13 06:40:37 +11:00
Peter Barker 2c401ccec5 Copter: rename ADVANCED_FAILSAFE to AP_COPTER_ADVANCED_FAILSAFE_ENABLED
to make integration with custom build server work
2024-11-12 12:44:34 +11:00
Eric Katzfey 281ea91ee5 ArduCopter: Update clang pragma to check for the version of clang that introduces the warning
AP_Arming: Update clang pragma to check for the version of clang that introduces the warning
2024-11-12 12:41:49 +11:00
muramura da69e22673 Copter: Use GRAVITY_MSS 2024-11-11 16:06:51 +09:00
muramura 8a5556cb4e Copter: Consolidate processing 2024-11-11 16:06:11 +09:00
muramura 38484b49ee Copter: correct release notes 2024-11-08 10:48:15 +11:00
Peter Barker e4859599cf Copter: stop using global ap variable as bitmask 2024-11-06 16:31:38 +09:00
Randy Mackay 84662207ee Copter: version to 4.7.0-dev 2024-11-06 18:13:45 +11:00
Randy Mackay 775fab505d Copter: 4.5.7 release notes 2024-10-16 11:14:41 +09:00
Gone4Dirt 075ce596d2 Copter: Heli: simplify autorotation mode change and support RSC autorotation state 2024-10-11 09:54:26 +11:00
Tatsuya Yamaguchi 63663303de Copter: Keep FIXED mode when WP_YAW_BEHAVIOR is NONE 2024-10-08 08:16:25 +09:00
Nick Exton 03db86427a Copter: Handle DO_MOUNT_CONTROL yaw angle as body frame
And only accept if the mode is MAV_MOUNT_MODE_MAVLINK_TARGETING. This matches the handlers in AP_Mount.
2024-10-08 08:05:27 +09:00
Nick Exton 3bac3618e1 Copter: Add set_yaw_angle_offset() function to AutoYaw mode 2024-10-08 08:05:27 +09:00
Randy Mackay 14447c6e2d Copter: add comment to loc_from_cmd 2024-10-06 13:56:08 +11:00
Randy Mackay be1c87f3d1 Copter: zigzag uses desired xy instead of actual 2024-10-04 09:25:56 +09:00
Leonard Hall 1c59ec8b94 Copter: PosHold supports offsets 2024-10-04 09:25:56 +09:00
Randy Mackay 5ca7daf915 Copter: payload place uses desired alt instead of actual
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2024-10-04 09:25:56 +09:00
Randy Mackay c38bbbd5f4 Copter: RTL path subtracts offsets
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2024-10-04 09:25:56 +09:00
Randy Mackay 0bcff6cec0 Copter: support set_posvelaccel_offset in auto
Co-authored-by: Leonard Hall <leonardthall@gmail.com>
2024-10-04 09:25:56 +09:00
Randy Mackay df2ae532c2 Copter: auto integrates get-closest-point-on-edge dist 2024-10-04 09:25:56 +09:00
Randy Mackay 91926674e9 Copter: minor comment fix to auto mode 2024-10-04 09:25:56 +09:00
Henry Wurzburg 6304eb99b4 Copter: add turtle mode to flight modes metadata 2024-10-01 10:35:45 +10:00
Peter Barker 9f1690ac20 ArduCopter: adjust for AP_Mission logging mission-item-starts 2024-10-01 10:19:29 +10:00
Peter Barker 47618ccb72 ArduCopter: split sending terrain report from terrain request 2024-10-01 10:13:06 +10:00
muramura 4b2b88945d Copter: Set the message buffer size to twice the message size 2024-09-27 21:33:56 +10:00
Randy Mackay 389a1abc87 Copter: 4.5.7-beta1 release notes 2024-09-27 14:31:05 +09:00
Iampete1 25e77a5d9f Copter: GCS_MAVLink: use pos control `is_active_xy` to set `base_mode` `GUIDED_ENABLED` flag 2024-09-27 07:54:35 +09:00
Iampete1 864fd9f15c Copter: `sensor_status_flags` switch to use pos control `is_active` methods for XY and Z flags 2024-09-27 07:54:35 +09:00
Andy Piper 4c1c326a52 Copter: remove whitespace 2024-09-26 19:25:33 +10:00
Andy Piper c67601b19f Copter: reset sysid and other temporary inputs after rate cycle 2024-09-26 19:25:33 +10:00
Iampete1 62a106bd4c Copter: add and use new `allows_GCS_arming_with_throttle_high` mode method 2024-09-25 08:47:57 +10:00