This commit is contained in:
Raffson
2022-11-13 22:22:57 +01:00
parent 2aee878a40
commit 004a99e080
6 changed files with 37 additions and 9 deletions

View File

@@ -36,6 +36,7 @@ class PackageWaypoints:
).find_best_ip()
hdg = package.target.position.heading_between_point(ingress_point)
# Generate a waypoint randomly between 7 & 9 NM
dist = nautical_miles(random.random() * 2 + 7).meters
initial_point = package.target.position.point_from_heading(hdg, dist)