Browse Source

Copter: Notify the fence breach at the notification level

zr-v5.1
murata 4 years ago committed by Randy Mackay
parent
commit
36f3fb316a
  1. 4
      ArduCopter/fence.cpp

4
ArduCopter/fence.cpp

@ -23,6 +23,10 @@ void Copter::fence_check() @@ -23,6 +23,10 @@ void Copter::fence_check()
// if there is a new breach take action
if (new_breaches) {
if (!copter.ap.land_complete) {
GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "Fence Breached");
}
// if the user wants some kind of response and motors are armed
uint8_t fence_act = fence.get_action();
if (fence_act != AC_FENCE_ACTION_REPORT_ONLY ) {

Loading…
Cancel
Save