mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_AttControl: relax earth frame rate targets along with bf
This commit is contained in:
parent
72c8f411d7
commit
0bf1d04172
@ -80,6 +80,7 @@ void AC_AttitudeControl::relax_bf_rate_controller()
|
||||
// ensure zero error in body frame rate controllers
|
||||
const Vector3f& gyro = _ahrs.get_gyro();
|
||||
_rate_bf_target = gyro * AC_ATTITUDE_CONTROL_DEGX100;
|
||||
frame_conversion_bf_to_ef(_rate_bf_target, _rate_ef_desired);
|
||||
|
||||
_pid_rate_roll.reset_I();
|
||||
_pid_rate_pitch.reset_I();
|
||||
|
Loading…
Reference in New Issue
Block a user