mirror of https://github.com/ArduPilot/ardupilot
Plane: fixed gcc 6.1 build error
This commit is contained in:
parent
2239fd6a6e
commit
eae2bf54ca
|
@ -1153,7 +1153,7 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
|
||||||
requested_position.lng = packet.y;
|
requested_position.lng = packet.y;
|
||||||
|
|
||||||
// check the floating representation for overflow of altitude
|
// check the floating representation for overflow of altitude
|
||||||
if (abs(packet.z * 100.0f) >= 0x7fffff) {
|
if (fabsf(packet.z * 100.0f) >= 0x7fffff) {
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue