mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AC_Fence: fix autofence enable in takeoff mode
This commit is contained in:
parent
aaad98e898
commit
dfc1b84186
@ -205,6 +205,9 @@ void AC_Fence::disable_floor()
|
||||
*/
|
||||
void AC_Fence::auto_enable_fence_after_takeoff(void)
|
||||
{
|
||||
if (_enabled) {
|
||||
return;
|
||||
}
|
||||
switch(auto_enabled()) {
|
||||
case AC_Fence::AutoEnable::ALWAYS_ENABLED:
|
||||
case AC_Fence::AutoEnable::ENABLE_DISABLE_FLOOR_ONLY:
|
||||
|
Loading…
Reference in New Issue
Block a user