mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: report polygon fence breach
This commit is contained in:
parent
1fd4eb4bfb
commit
743d9ec65f
@ -65,7 +65,7 @@ void Copter::fence_send_mavlink_status(mavlink_channel_t chan)
|
||||
if ((breaches & AC_FENCE_TYPE_ALT_MAX) != 0) {
|
||||
mavlink_breach_type = FENCE_BREACH_MAXALT;
|
||||
}
|
||||
if ((breaches & AC_FENCE_TYPE_CIRCLE) != 0) {
|
||||
if ((breaches & (AC_FENCE_TYPE_CIRCLE | AC_FENCE_TYPE_POLYGON)) != 0) {
|
||||
mavlink_breach_type = FENCE_BREACH_BOUNDARY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user