AC_Fence: Send text to gcs when fence is auto-enabled

This commit is contained in:
James O'Shannessy 2021-03-03 23:25:09 +11:00 committed by Peter Barker
parent b4bf41c6f9
commit 8ef68c8fb0

View File

@ -171,6 +171,7 @@ void AC_Fence::auto_enable_fence_after_takeoff(void)
case AC_Fence::AutoEnable::ALWAYS_ENABLED: case AC_Fence::AutoEnable::ALWAYS_ENABLED:
case AC_Fence::AutoEnable::ENABLE_DISABLE_FLOOR_ONLY: case AC_Fence::AutoEnable::ENABLE_DISABLE_FLOOR_ONLY:
enable(true); enable(true);
gcs().send_text(MAV_SEVERITY_NOTICE, "Fence enabled (auto enabled)");
break; break;
default: default:
// fence does not auto-enable in other takeoff conditions // fence does not auto-enable in other takeoff conditions