Skip to content

Commit

Permalink
Rover: use fence enable_configured()
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Feb 8, 2024
1 parent ebeb9b3 commit 5e25f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rover/mode_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ bool ModeAuto::start_command(const AP_Mission::Mission_Command& cmd)
case MAV_CMD_DO_FENCE_ENABLE:
#if AP_FENCE_ENABLED
if (cmd.p1 == 0) { //disable
rover.fence.enable(false);
rover.fence.enable_configured(false);
gcs().send_text(MAV_SEVERITY_INFO, "Fence Disabled");
} else { //enable fence
rover.fence.enable(true);
rover.fence.enable_configured(true);
gcs().send_text(MAV_SEVERITY_INFO, "Fence Enabled");
}
#endif
Expand Down

0 comments on commit 5e25f51

Please sign in to comment.