ardupilot
ardupilot copied to clipboard
AC_AttitudeControl: Fix dt update order
This PR moves the movement of target position to the first step of the attitude controller where it knows the dt.
Currently we assume the next dt will be the same as the last dt. This causes noise in the rate controllers when dt changes and high rates are being requested.
Limitations in ATT logging has made this difficult to observe previously.
Before:
After: