Mission: sanity check command altitudes

This commit is contained in:
Randy Mackay 2015-10-19 16:14:00 +09:00
parent d1d778652b
commit 25c5c167f7
1 changed files with 3 additions and 0 deletions

View File

@ -712,6 +712,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) {