We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca938be commit 42e2b44Copy full SHA for 42e2b44
modules/bootcamp/decision_waypoint_landing_pads.py
@@ -4,7 +4,6 @@
4
Travel to designated waypoint and then land at a nearby landing pad.
5
"""
6
7
-import math
8
from .. import commands
9
from .. import drone_report
10
@@ -99,7 +98,7 @@ def run(
99
98
command = commands.Command.create_set_relative_destination_command(rel_x, rel_y)
100
else:
101
if self.closest_landing_location is None:
102
- min_dist_sq = math.inf
+ min_dist_sq = float("inf")
103
for landing_pad_location in landing_pad_locations:
104
current_dist_sq = self.dist_sq(report.position, landing_pad_location)
105
if current_dist_sq < min_dist_sq:
0 commit comments