mirror of https://github.com/ArduPilot/ardupilot
Copter: Notify the fence breach at the notification level
This commit is contained in:
parent
db06de5c9c
commit
36f3fb316a
|
@ -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…
Reference in New Issue