AP_AHRS: correct sanity checks on update_trig

This commit is contained in:
Randy Mackay 2015-04-23 09:45:43 +09:00
parent 6a6ccb4f32
commit 6e30093924

View File

@ -261,8 +261,8 @@ void AP_AHRS::update_trig(void)
if (yaw_vector.is_inf() || yaw_vector.is_nan()) {
yaw_vector.x = 0.0f;
yaw_vector.y = 0.0f;
_sin_yaw = 1.0f;
_cos_yaw = 0.0f;
_sin_yaw = 0.0f;
_cos_yaw = 1.0f;
}
if (isinf(_cos_roll) || isnan(_cos_roll)) {