ardupilot/libraries/AC_AutoTune
Thomas Watson b43cabd443 AC_AutoTune: fix tracking of maximum angular acceleration
Issue introduced in https://github.com/ArduPilot/ardupilot/pull/27370
and partially fixed in https://github.com/ArduPilot/ardupilot/pull/27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
2024-12-12 15:13:40 +11:00
..
AC_AutoTune.cpp AC_AutoTune: Write_Rate() moved to AC_AttitudeControl 2024-09-10 16:33:04 +01:00
AC_AutoTune.h AC_AutoTune: add support for testing tune via aux function 2024-08-13 08:57:44 +09:00
AC_AutoTune_FreqResp.cpp AC_AutoTune: return freqresp ring buffers to original implementation 2024-07-01 22:57:55 -04:00
AC_AutoTune_FreqResp.h AC_AutoTune: return freqresp ring buffers to original implementation 2024-07-01 22:57:55 -04:00
AC_AutoTune_Heli.cpp AC_AutoTune: Multi and Heli: only load tuned gains if a axis has completed successfully 2024-08-13 08:57:44 +09:00
AC_AutoTune_Heli.h AC_AutoTune: remove unused variable from heli autotune 2024-08-12 13:30:26 -04:00
AC_AutoTune_Multi.cpp AC_AutoTune: fix tracking of maximum angular acceleration 2024-12-12 15:13:40 +11:00
AC_AutoTune_Multi.h AC_AutoTune: fix tracking of maximum angular acceleration 2024-12-12 15:13:40 +11:00
AC_AutoTune_config.h AC_AutoTune: add and use header guards 2023-12-12 11:36:15 +11:00