Plane: fixed gcc 6.1 build error

This commit is contained in:
Andrew Tridgell 2016-06-06 07:43:45 +10:00
parent 2239fd6a6e
commit eae2bf54ca
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }