Skip to content

Commit

Permalink
squared acceptance radius
Browse files Browse the repository at this point in the history
  • Loading branch information
dfwihand5150 committed Sep 27, 2024
1 parent bed2b72 commit 354f037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bootcamp/decision_waypoint_landing_pads.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def closest_pad(
_min = x_distance**2 + y_distance**2
index += 1

if _min <= self.acceptance_radius:
if _min <= self.acceptance_radius**2:
return -1

return closest_index
Expand Down

0 comments on commit 354f037

Please sign in to comment.