Plane: Never trigger fence breach in LAND_FINAL flight stage.

This commit is contained in:
Michael Day 2015-04-09 20:57:23 -06:00 committed by Andrew Tridgell
parent 4a3e61f4e4
commit 0279fdb0de

View File

@ -290,6 +290,11 @@ static void geofence_check(bool altitude_check_only)
uint8_t breach_type = FENCE_BREACH_NONE;
struct Location loc;
// Never trigger a fence breach in the final stage of landing
if (flight_stage == AP_SpdHgtControl::FLIGHT_LAND_FINAL) {
return;
}
if (geofence_check_minalt()) {
outside = true;
breach_type = FENCE_BREACH_MINALT;