|
|
|
@ -865,6 +865,19 @@ bool AC_PolyFence_loader::get_inclusion_circle(uint8_t index, Vector2f ¢er_p
@@ -865,6 +865,19 @@ bool AC_PolyFence_loader::get_inclusion_circle(uint8_t index, Vector2f ¢er_p
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool AC_PolyFence_loader::check_inclusion_circle_margin(float margin) const |
|
|
|
|
{ |
|
|
|
|
// check circular includes
|
|
|
|
|
for (uint8_t i=0; i<_num_loaded_circle_inclusion_boundaries; i++) { |
|
|
|
|
const InclusionCircle &circle = _loaded_circle_inclusion_boundary[i]; |
|
|
|
|
if (circle.radius < margin) { |
|
|
|
|
// circle radius should never be less than margin
|
|
|
|
|
return false; |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool AC_PolyFence_loader::validate_fence(const AC_PolyFenceItem *new_items, uint16_t count) const |
|
|
|
|
{ |
|
|
|
|
// validate the fence items...
|
|
|
|
|