Copter: report polygon fence breach

This commit is contained in:
khancyr 2017-07-20 16:39:18 +02:00 committed by Randy Mackay
parent 1fd4eb4bfb
commit 743d9ec65f

View File

@ -65,7 +65,7 @@ void Copter::fence_send_mavlink_status(mavlink_channel_t chan)
if ((breaches & AC_FENCE_TYPE_ALT_MAX) != 0) { if ((breaches & AC_FENCE_TYPE_ALT_MAX) != 0) {
mavlink_breach_type = FENCE_BREACH_MAXALT; 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; mavlink_breach_type = FENCE_BREACH_BOUNDARY;
} }