Rover: fix the description and remove unnecessary send_text

This commit is contained in:
Tatsuya Yamaguchi 2020-02-05 15:18:11 +09:00 committed by Randy Mackay
parent 5688031f02
commit 70311382d9

View File

@ -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: