mirror of https://github.com/ArduPilot/ardupilot
Mission: sanity check command altitudes
This commit is contained in:
parent
d1d778652b
commit
25c5c167f7
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue