|
|
|
@ -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 ) { |
|
|
|
|