Commit Graph
268 Commits
Author SHA1 Message Date
Leonard Hall 561cfe2c1c Copter: Support - AC_WPNav: add units to crosstrack_error 2025-07-25 14:20:19 +09:00
Iampete1 2c0c074b71 ArduCopter: move RPM lib to vehicle 2025-07-22 10:33:55 +10:00
Peter Barker c8868a9b73 ArduCopter: add and use AP_RC_TRANSMITTER_TUNING_ENABLED 2025-07-22 08:14:19 +09:00
Leonard Hall 1141fedc6f Copter: LUA: Support - Guided: Change cd to rad 2025-07-08 09:24:39 +09:00
Iampete1 f91d001803 Copter: DO_CHANGE_SPED: use enum and add cms postfix to setters 2025-07-08 08:57:02 +09:00
Peter Barker e6f3c6a88e ArduCopter: move rudder-arming up to RC_Channel library 2025-07-08 08:28:31 +10:00
Leonard Hall f8f720a0c0 Copter: remove most of the _cd() functions 2025-07-07 09:28:56 +09:00
Peter Barker 831078bbc2 ArduCopter: add and use AP_ADSB_AVOIDANCE_ENABLED
this gates the "ADSB" avoidance feature used for macro-level avoidance.  It's not actually limited to ADSB as input...
2025-06-26 16:32:22 +10:00
Leonard HallandRandy Mackay 030714aecc Copter: inertial nav replaced with AHRS
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2025-05-31 08:21:51 +09:00
Bob Long b23d65a3bc ArduCopter: fix SCHED_TASK rate_hz name 2025-05-30 10:36:09 +10:00
Leonard Hall f4069f57d9 Copter: Use cd_to_rad and remove radians(XXX * 0.01f); 2025-05-28 20:16:26 +09:00
Peter Barker 63d7973471 Copter: avoid updating simple-mode values when RC input is invalid
if we are at bind-time values then we still get new radio frames, they're just not something we should use
2025-05-14 20:41:27 +10:00
muramura 514e71b850 Copter: Add units to the method that calculates the distance meter between WAYPOINTs 2025-05-12 11:37:04 +09:00
Leonard Hall 69f563c36d Copter: add units and frames to AC_WPNav methods
Copter

Copter
2025-05-02 21:47:07 +10:00
Leonard HallandPeter Barker c11d93b36f ArduCopter: add units and frames to AC_AttitudeControl methods
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2025-04-23 10:02:29 +10:00
Thomas Watson 331d8653b3 Copter: avoid rounding to degree in super-simple bearing calculation
Multiply by float instead of dividing by integer to get a float result.
2025-04-08 22:06:37 +10:00
Randy Mackay 695949ef4f Copter: remove call to control monitor logging 2025-03-26 14:10:35 +11:00
co63oc d24da9e854 ArduCopter: correct typos and mis-spellings 2025-03-03 08:47:03 +09:00
Peter Barker b9a83a6201 ArduCopter: use aux switch to trigger AHRS-trim-via-RC-input 2025-02-06 16:03:52 +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 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
Gone4Dirt 00e5f4001f Copter: Autorotation mode restructure and tidy 2025-01-22 18:53:44 +11:00
Andy Piper 3ed6ada2e3 Copter: allocation failure on rate thread start 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 PiperandAndrew Tridgell 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 1ed57deab6 Copter: return custom_mode_state for registered modes 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
snktshrmaandRyan Friedman 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
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 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
Peter Barker e4859599cf Copter: stop using global ap variable as bitmask 2024-11-06 16:31:38 +09:00
Iampete1 94944427da Copter: Scripting: add support for set_target_rate_and_throttle 2024-09-25 08:47:30 +10:00
Peter Barker db767ce0dd ArduCopter: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Andy Piper 505d05d5f8 Copter: log ANG attitude message 2024-09-17 10:12:35 +10:00
Peter Barker 784760342d Copter: remove ENABLE/ENABLED/DISABLE/DISABLED defines 2024-09-06 11:53:09 +10:00
Gone4Dirt aabaa0939a Copter: Move heli logging down into motors 2024-08-14 23:39:01 -04:00
Luca Pescante 0583e85145 Copter: update "CH6 tuning" comments 2024-07-25 09:40:13 +10:00
muramura f9bc247121 Copter: correct comment about scope of is_landing and is_taking_off 2024-07-24 18:31:00 +10:00
Peter BarkerandDavid Buzz 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
Peter Barker f64fcb78d3 ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +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-kawamuraandPeter Hall 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
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
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 4569b1ba14 ArduCopter: allow HarmonicNotches to be compiled out of the code 2024-03-19 07:04:13 +11:00
Andy Piper f0b691dd31 Copter: check fence at faster rates when going faster to avoid massive fence breaches 2024-02-28 19:29:44 +11:00