Browse Source

Plane: Display Fence Breach message in GCS

Send a "Geofence breach" message to the Ground Control Station. Without this when the fence is breached and if anything happens as a result, such as RTL, it will happen silently.
gps-1.3.1
Tim Tuxworth 3 years ago committed by Andrew Tridgell
parent
commit
6e915df31b
  1. 4
      ArduPlane/fence.cpp

4
ArduPlane/fence.cpp

@ -50,6 +50,10 @@ void Plane::fence_check() @@ -50,6 +50,10 @@ void Plane::fence_check()
// user disables/re-enables using the fence channel switch
return;
}
if(new_breaches && plane.is_flying()) {
GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "Fence Breached");
}
if (new_breaches || orig_breaches) {
// if the user wants some kind of response and motors are armed

Loading…
Cancel
Save