Commit Graph

7671 Commits

Author SHA1 Message Date
Peter Barker
569386cfa5 ArduCopter: move REQUIRE_POSITION_FROM_ARMING bit to AP_arming
while Copter is the only user at the moment, will be useful on Rover shortly
2025-02-04 09:02:16 +09:00
Leonard Hall
e5f719b65a Copter: SystemID: Fix unutilized variables 2025-02-01 18:59:07 +11:00
Peter Barker
c3f2b4013f Copter: free allocations in case of allocation failure
these would be leaked if the "new" call for the ModeGuidedCustom object failed.

Since resgister_custom_mode may be called multiple times we could leak memory continuously
2025-01-31 08:53:20 +09:00
Peter Barker
d2c24efd83 ArduCopter: make compass LearnType enum-class and parameter AP_Enum 2025-01-29 19:21:59 +11:00
Peter Barker
8425bf46dd Copter: remove unused hgt_variance_filt
this filter is populated but never checked when checking variances
2025-01-29 18:52:35 +11:00
Peter Barker
59af955a9e ArduCopter: adjust for AP_Arming file rename 2025-01-28 10:56:26 +11:00
Peter Barker
a073941b2c Copter: rename AP_Arming libraries for vehicles to AP_Arming_VEHICLENAME 2025-01-28 10:56:26 +11:00
Iampete1
7dc91c3f32 Copter: use new misison present method 2025-01-28 10:30:06 +11:00
Randy Mackay
1fd369f51a Copter: 4.6.0-beta3 release notes 2025-01-27 08:56:05 +09:00
Gone4Dirt
00e5f4001f Copter: Autorotation mode restructure and tidy 2025-01-22 18:53:44 +11:00
Gone4Dirt
f656bc6837 Copter: Add Autorotation mode arming checks 2025-01-22 18:53:44 +11:00
Peter Barker
a5eb9326cf ArduCopter: allow for more than 327m range rangefinders 2025-01-21 10:54:05 +11:00
muramura
ac09362170 Copter: fix param increment description 2025-01-13 20:33:33 +09:00
muramura
20dce34988 Copter: Change division to multiplication 2025-01-02 23:22:42 +11:00
Peter Barker
cef48fc432 Copter: remove misleading comments about default being conversions
despite these looking likely to be conversion information, these are actually default values embedded within the Copter::convert_pid_parameters method
2024-12-31 10:54:56 +11:00
Peter Barker
e202a4128c Copter: remove stale parameter conversions
this removes stale parameter conversions.

These patches are all in the Copter-4.0.0 tag, meaning that they are all for upgrading from a version prior to that to a version prior-or-equal-to Copter-4.0.0

Past this a user running a version of ArduCopter < 4.0.0 to something >= 4.7.0 will not have smooth parameter conversions
2024-12-31 10:54:56 +11:00
Ryan Friedman
ab27d49eee ArduCopter: reserve offboard mode ID
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-12-27 07:15:31 +11:00
Peter Barker
49020a59c9 ArduCopter: adjust for renaming of RC_Channel and GCS_MAVLink headers 2024-12-26 11:01:22 +11:00
Peter Barker
c74b0757a4 ArduCopter: make RC_Channel and GCS_MAVLink filenames consistent 2024-12-26 11:01:22 +11:00
Iampete1
31eb10451c Copter: set source index when running aux functions 2024-12-24 11:34:07 +11:00
Iampete1
0ca5695cb7 ArduCopter: move to AuxFuncTrigger structure 2024-12-24 11:34:07 +11:00
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