Browse Source

AC_AttControl: relax earth frame rate targets along with bf

mission-4.1.18
Randy Mackay 10 years ago
parent
commit
0bf1d04172
  1. 1
      libraries/AC_AttitudeControl/AC_AttitudeControl.cpp

1
libraries/AC_AttitudeControl/AC_AttitudeControl.cpp

@ -80,6 +80,7 @@ void AC_AttitudeControl::relax_bf_rate_controller() @@ -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…
Cancel
Save