mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AC_AttitudeControl: add comment
This commit is contained in:
parent
7cb3c4ba39
commit
24b8d32b0e
@ -552,6 +552,7 @@ void AC_AttitudeControl::update_rate_bf_targets()
|
||||
_rate_bf_target.z = _p_angle_yaw.kP() * _angle_bf_error.z;
|
||||
}
|
||||
|
||||
// include roll and pitch rate required to account for precession of the desired attitude about the body frame yaw axes
|
||||
_rate_bf_target.x += _angle_bf_error.y * _ahrs.get_gyro().z;
|
||||
_rate_bf_target.y += -_angle_bf_error.x * _ahrs.get_gyro().z;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user