mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: fix the description and remove unnecessary send_text
This commit is contained in:
parent
5688031f02
commit
70311382d9
@ -16,11 +16,9 @@ void Rover::fence_check()
|
|||||||
|
|
||||||
// if there is a new breach take action
|
// if there is a new breach take action
|
||||||
if (new_breaches) {
|
if (new_breaches) {
|
||||||
gcs().send_text(MAV_SEVERITY_NOTICE,"Geofence triggered");
|
|
||||||
|
|
||||||
// if the user wants some kind of response and motors are armed
|
// if the user wants some kind of response and motors are armed
|
||||||
if (g2.fence.get_action() != Failsafe_Action_None) {
|
if (g2.fence.get_action() != Failsafe_Action_None) {
|
||||||
// if we are within 100m of the fence, HOLD
|
// if within 100m of the fence, it will take the action specified by the FENCE_ACTION parameter
|
||||||
if (g2.fence.get_breach_distance(new_breaches) <= AC_FENCE_GIVE_UP_DISTANCE) {
|
if (g2.fence.get_breach_distance(new_breaches) <= AC_FENCE_GIVE_UP_DISTANCE) {
|
||||||
switch (g2.fence.get_action()) {
|
switch (g2.fence.get_action()) {
|
||||||
case Failsafe_Action_None:
|
case Failsafe_Action_None:
|
||||||
|
Loading…
Reference in New Issue
Block a user