mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
Plane: Never trigger fence breach in LAND_FINAL flight stage.
This commit is contained in:
parent
4a3e61f4e4
commit
0279fdb0de
@ -290,6 +290,11 @@ static void geofence_check(bool altitude_check_only)
|
|||||||
uint8_t breach_type = FENCE_BREACH_NONE;
|
uint8_t breach_type = FENCE_BREACH_NONE;
|
||||||
struct Location loc;
|
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()) {
|
if (geofence_check_minalt()) {
|
||||||
outside = true;
|
outside = true;
|
||||||
breach_type = FENCE_BREACH_MINALT;
|
breach_type = FENCE_BREACH_MINALT;
|
||||||
|
Loading…
Reference in New Issue
Block a user