Mission: sanity check command altitudes

This commit is contained in:
Randy Mackay 2015-10-19 16:14:00 +09:00
parent acd8252e4b
commit 756d564b7c

View File

@ -723,6 +723,9 @@ bool AP_Mission::mavlink_to_mission_cmd(const mavlink_mission_item_t& packet, AP
return false;
}
}
if (fabsf(packet.z) >= LOCATION_ALT_MAX_M) {
return false;
}
switch (packet.frame) {