mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
AC_AttControl: minor comment fix
This commit is contained in:
parent
a348424551
commit
4b41710261
@ -455,7 +455,7 @@ bool AC_AttitudeControl::frame_conversion_bf_to_ef(const Vector3f& bf_vector, Ve
|
||||
if (is_zero(_ahrs.cos_pitch())) {
|
||||
return false;
|
||||
}
|
||||
// convert earth frame angle or rates to body frame
|
||||
// convert body frame angle or rates to earth frame
|
||||
ef_vector.x = bf_vector.x + _ahrs.sin_roll() * (_ahrs.sin_pitch()/_ahrs.cos_pitch()) * bf_vector.y + _ahrs.cos_roll() * (_ahrs.sin_pitch()/_ahrs.cos_pitch()) * bf_vector.z;
|
||||
ef_vector.y = _ahrs.cos_roll() * bf_vector.y - _ahrs.sin_roll() * bf_vector.z;
|
||||
ef_vector.z = (_ahrs.sin_roll() / _ahrs.cos_pitch()) * bf_vector.y + (_ahrs.cos_roll() / _ahrs.cos_pitch()) * bf_vector.z;
|
||||
|
Loading…
Reference in New Issue
Block a user