mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:39:25 +08:00
update call sites
This commit is contained in:
@@ -55,8 +55,9 @@ public:
|
||||
vertices_local[i] = ref.project(_vertices[i](0), _vertices[i](1));
|
||||
}
|
||||
|
||||
const bool is_inclusion_zone = (_fence_type == NAV_CMD_FENCE_POLYGON_VERTEX_INCLUSION);
|
||||
return geofence_utils::lineSegmentIntersectsPolygon(start_local, end_local,
|
||||
vertices_local, _num_vertices);
|
||||
vertices_local, _num_vertices, is_inclusion_zone);
|
||||
}
|
||||
|
||||
PolygonInfo getPolygonInfoByIndex(int index) override
|
||||
|
||||
@@ -759,8 +759,10 @@ bool Geofence::checkIfLineViolatesAnyFence(const matrix::Vector2f &start_local,
|
||||
continue;
|
||||
}
|
||||
|
||||
const bool is_inclusion_zone = (info.fence_type == NAV_CMD_FENCE_POLYGON_VERTEX_INCLUSION);
|
||||
|
||||
if (geofence_utils::lineSegmentIntersectsPolygon(
|
||||
start_local, end_local, vertices_local, info.vertex_count)) {
|
||||
start_local, end_local, vertices_local, info.vertex_count, is_inclusion_zone)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user