From 685fb7e34f9196e49aa2f24a563d809bf8f207f5 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Fri, 31 May 2024 15:19:45 +0100 Subject: [PATCH] Rover: use generic fence handling in missions --- Rover/mode_auto.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Rover/mode_auto.cpp b/Rover/mode_auto.cpp index f18ab0a8f9..6e97b0a1d2 100644 --- a/Rover/mode_auto.cpp +++ b/Rover/mode_auto.cpp @@ -593,18 +593,6 @@ bool ModeAuto::start_command(const AP_Mission::Mission_Command& cmd) do_set_reverse(cmd); break; - case MAV_CMD_DO_FENCE_ENABLE: -#if AP_FENCE_ENABLED - if (cmd.p1 == 0) { //disable - rover.fence.enable_configured(false); - gcs().send_text(MAV_SEVERITY_INFO, "Fence Disabled"); - } else { //enable fence - rover.fence.enable_configured(true); - gcs().send_text(MAV_SEVERITY_INFO, "Fence Enabled"); - } -#endif - break; - case MAV_CMD_DO_GUIDED_LIMITS: do_guided_limits(cmd); break;