Sub: wrap_180_cd no longer returns floats for integer arguments

This commit is contained in:
Peter Barker 2019-09-10 09:47:55 +10:00 committed by Peter Barker
parent 8ee411e998
commit d32a7b3a29
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ bool Sub::verify_yaw()
}
// check if we are within 2 degrees of the target heading
return (fabsf(wrap_180_cd(ahrs.yaw_sensor-yaw_look_at_heading)) <= 200);
return (abs(wrap_180_cd(ahrs.yaw_sensor-yaw_look_at_heading)) <= 200);
}
/********************************************************************************/