Skip to content

Commit 6cf2984

Browse files
committed
Clean up
1 parent f52fcfb commit 6cf2984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/bootcamp/decision_waypoint_landing_pads.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ def run(
110110
if self.has_arrived_at_waypoint and not self.has_arrived_at_landing_pad:
111111
nearest_landing_pad = self._find_nearest_landing_pad(current_position, landing_pad_locations)
112112
if nearest_landing_pad:
113-
distance_to_landing_pad = pow(pow(nearest_landing_pad.location_x - current_position.location_x, 2) + pow(nearest_landing_pad.location_y - current_position.location_y, 2), 0.5)
113+
distance_to_landing_pad = pow(
114+
pow(nearest_landing_pad.location_x - current_position.location_x, 2) +
115+
pow(nearest_landing_pad.location_y - current_position.location_y, 2), 0.5
116+
)
114117
if distance_to_landing_pad <= self.acceptance_radius:
115118
self.has_arrived_at_landing_pad = True
116119
command = commands.Command.create_land_command()

0 commit comments

Comments
 (0)