Skip to content

Commit 42e2b44

Browse files
committed
Remove math import for infinity
1 parent ca938be commit 42e2b44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/bootcamp/decision_waypoint_landing_pads.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Travel to designated waypoint and then land at a nearby landing pad.
55
"""
66

7-
import math
87
from .. import commands
98
from .. import drone_report
109

@@ -99,7 +98,7 @@ def run(
9998
command = commands.Command.create_set_relative_destination_command(rel_x, rel_y)
10099
else:
101100
if self.closest_landing_location is None:
102-
min_dist_sq = math.inf
101+
min_dist_sq = float("inf")
103102
for landing_pad_location in landing_pad_locations:
104103
current_dist_sq = self.dist_sq(report.position, landing_pad_location)
105104
if current_dist_sq < min_dist_sq:

0 commit comments

Comments
 (0)