mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Copter: don't breach auto-fences when landed
This commit is contained in:
parent
37e0923ec2
commit
f8304e12d1
@ -12,7 +12,8 @@ void Copter::fence_check()
|
||||
|
||||
bool is_in_landing = flightmode->mode_number() == Mode::Number::LAND
|
||||
|| flightmode->mode_number() == Mode::Number::RTL
|
||||
|| flightmode->mode_number() == Mode::Number::SMART_RTL;
|
||||
|| flightmode->mode_number() == Mode::Number::SMART_RTL
|
||||
|| ap.land_complete || !motors->armed();
|
||||
|
||||
// check for new breaches; new_breaches is bitmask of fence types breached
|
||||
const uint8_t new_breaches = fence.check(is_in_landing);
|
||||
|
Loading…
Reference in New Issue
Block a user