Plane: update gyro fft throttle

allows for updating or learned FFT freq
This commit is contained in:
Andrew Tridgell 2022-05-09 15:46:41 +10:00
parent f7360ade04
commit 0124e9b54c
1 changed files with 3 additions and 0 deletions

View File

@ -1870,6 +1870,9 @@ void QuadPlane::update_throttle_hover()
ahrs.airspeed_estimate(aspeed) && aspeed < plane.aparm.airspeed_min*0.3) {
// Can we set the time constant automatically
motors->update_throttle_hover(0.01f);
#if HAL_GYROFFT_ENABLED
plane.gyro_fft.update_freq_hover(0.01f, motors->get_throttle_out());
#endif
}
}
/*