mirror of https://github.com/ArduPilot/ardupilot
Sub: wrap_180_cd no longer returns floats for integer arguments
This commit is contained in:
parent
8ee411e998
commit
d32a7b3a29
|
@ -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);
|
||||
}
|
||||
|
||||
/********************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue