Commit Graph
227 Commits
Author SHA1 Message Date
Piyal Saha 6a933314a2 Copter: convert CTUN climb rate fields to SI units (m/s) 2026-03-20 09:34:25 +11:00
Leonard Hall 5341583dd1 Copter: add unit and axis suffixes to internal variables and log struct fields 2026-02-10 05:47:01 -08:00
Randy MackayandAndy Piper 0e44baae85 Copter: rename requires_GPS to requires_position
Co-authored-by: Andy Piper <github@andypiper.com>
2026-02-05 14:24:44 -05:00
Leonard Hall 7a8cc3815f Copter: NEU to NED renaming - No compiler change 2025-12-17 08:03:10 +09:00
Peter Barker 5745e91576 ArduCopter: make AP_Logger quiet_nanf methods static 2025-11-29 13:30:48 -06:00
Leonard Hall 63a2423942 Copter: Add _U_m accessors for altitude. 2025-11-21 13:01:44 +09:00
Peter Barker 3af1094f10 Copter: correct unit for logged CTUN.BAlt field
this was recently converted to be in metres, but the unit type as missed...

'e' is int32_t so same width as the float - so the data is still in the log, just mislabelled in terms of its storage type
2025-11-12 16:09:10 +09:00
Leonard Hall 7e03cfb3a9 Copter: Convert to postype 2025-09-26 10:35:25 +09:00
Leonard Hall ceb5ad848a Copter: Address PR feedback 2025-08-15 14:06:52 +09:00
Leonard Hall ff86a544c7 Copter: Small changes to convert to meters 2025-08-15 14:06:52 +09:00
Leonard Hall 3b98ca1a9a Copter: Convert baro_alt to meters 2025-08-15 14:06:52 +09:00
Leonard Hall b07cc04124 Copter: PR feedback 2025-08-13 11:06:41 +09:00
Leonard Hall 9799b6b7a0 Copter: Add missing is_terrain_alt 2025-08-13 11:06:41 +09:00
Leonard Hall f2f0ae4b0b ModeGuided: SubMode submode 2025-08-13 11:06:41 +09:00
Leonard Hall 126f33fa21 Copter: Convert Others to meters 2025-08-13 11:06:41 +09:00
Leonard Hall 1a4f8b738e Copter: Convert Mode Guided to meters 2025-08-13 11:06:41 +09:00
Leonard Hall 5962f25800 Copter: Convert get_pilot_desired_climb_rate to meters 2025-08-07 20:32:05 +09:00
Peter Barker c7668192ba Copter: improve logging of parameter tuning 2025-07-22 08:14:19 +09:00
Leonard Hall 4b307edbde Copter: Fix units in Log_Write_Guided_Position_Target 2025-06-16 15:30:28 +09: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
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
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
Andy Piper 505d05d5f8 Copter: log ANG attitude message 2024-09-17 10:12:35 +10:00
Andy Piper ff72e163d9 Copter: Write_Rate() moved to AC_AttitudeControl 2024-09-10 16:33:04 +01:00
Andy Piper d5b939fe76 Copter: log attitude target in degrees 2024-09-10 10:54:55 +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
Peter Barker f64fcb78d3 ArduCopter: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
Peter Barker 4e97561d5b ArduCopter: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker 7377b3f8f2 ArduCopter: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Henry Wurzburg d3aebd72d8 Copter: logging disentangle and correct bugs and rename bitmasks
fix
2022-08-16 20:16:24 -04:00
Peter Barker b0c8fda8d4 ArduCopter: move logging of compass ERR flags into AP_Compass 2022-05-10 19:46:40 +10:00
Peter Barker 6830092a7d ArduCopter: move error logging of sensor health into AP_Baro 2022-05-03 17:38:09 +10:00
Andy Piper 01766eee01 Copter: use new Task infrastructure for the fast loop
add helper for running rate controller
add fast_loop documentation.
2022-05-03 08:20:13 +09:00
murata 08a1ad3c39 Copter: Change from division to multiplication 2022-03-16 18:41:52 +11:00
Shiv Tyagi c1dafae84a Copter: separate logging for position and attitude targets in guided mode
We now log position and attitude targets in guided mode separately. Earlier we were using same messages for both which was causing some confusion in field names
2022-01-26 21:36:48 +09:00
Peter Barker 35506d0681 ArduCopter: move logging of SIMSTATE, AHRS2 and POS into AP_AHRS library 2022-01-25 10:59:17 +11:00
Iampete1 b6806ada27 Copter: move motbatt logging to motors 2022-01-18 10:18:10 +11:00
Josh Henderson 3107c42fca Copter: INAV rename for neu & cm/cms 2021-11-30 10:08:07 +11:00
Peter Barker 14e5c99b0c ArduCopter: log GPS primary change event in GPS library 2021-08-06 15:30:18 +10:00
Andrew Tridgell e1094bc845 Copter: mark log messages as streaming 2021-08-03 10:23:36 +10:00
Peter Barker e74a8e28af ArduCopter: rename for AHRS restructuring 2021-07-21 21:01:39 +10:00
Peter Barker 3684741517 ArduCopter: remove AC_TERRAIN compilation option
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Randy Mackay ba1951a372 Copter: guided accepts terrain alt position targets 2021-07-10 20:25:05 +09:00
Leonard Hall 635d13a106 Copter: support for acceleration-based AttitudeControl 2021-07-10 20:25:05 +09:00
Peter Barker c2c013964d ArduCopter: tidy frame description strings
Before: AP: Frame: TRI/
After: AP: Frame: TRI
2021-06-21 16:30:37 +10:00
chobitsfan 14c32f556c Copter: fix build problem when log disabled 2021-06-09 09:34:13 +10:00
Leonard Hall 4bae8f03a4 Copter: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Peter Barker 5df8dd8c50 Copter: move guided submode enumeration into ModeGuided 2021-04-14 16:12:57 +09:00