mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: update gyro fft throttle
allows for updating or learned FFT freq
This commit is contained in:
parent
1ac8661899
commit
86d2ccf0e7
@ -1870,6 +1870,9 @@ void QuadPlane::update_throttle_hover()
|
|||||||
ahrs.airspeed_estimate(aspeed) && aspeed < plane.aparm.airspeed_min*0.3) {
|
ahrs.airspeed_estimate(aspeed) && aspeed < plane.aparm.airspeed_min*0.3) {
|
||||||
// Can we set the time constant automatically
|
// Can we set the time constant automatically
|
||||||
motors->update_throttle_hover(0.01f);
|
motors->update_throttle_hover(0.01f);
|
||||||
|
#if HAL_GYROFFT_ENABLED
|
||||||
|
plane.gyro_fft.update_freq_hover(0.01f, motors->get_throttle_out());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user