Perturb fallback join/split points.

Otherwise they're placed exactly on top of each other, which makes the
map harder to read.
This commit is contained in:
Dan Albert 2021-07-13 20:10:29 -07:00
parent 076df7cf66
commit 7c3e08050f

View File

@ -998,11 +998,10 @@ class FlightPlanBuilder:
ingress_point = self._ingress_point(self._target_heading_to_package_airfield())
join_point = self._rendezvous_point(ingress_point)
split_point = self._rendezvous_point(ingress_point)
self.package.waypoints = PackageWaypoints(
join_point,
WaypointBuilder.perturb(join_point),
ingress_point,
split_point,
WaypointBuilder.perturb(join_point),
)
def safe_points_between(self, a: Point, b: Point) -> Iterator[Point]: