Skip to content

Commit

Permalink
changed config
Browse files Browse the repository at this point in the history
  • Loading branch information
valenmoore committed May 6, 2024
1 parent 8e3656f commit b70141d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
frontend_store_data_interval = 8
# how close the ultrasonics can read without triggering
ultra_alert_distance = 20


# accepted distance from desired point
point_radius_meters = 3.5

2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def go_to_position(target_pos: tuple):

current_pos = gps.get_gps_coords()

while abs(gps.haversine_distance(current_pos, target_pos)) > 2:
while abs(gps.haversine_distance(current_pos, target_pos)) > config.point_radius_meters:
current_pos = gps.get_gps_coords()
current_heading = gps.gps_heading()
# Use heading from GPS to determine a target_heading to destination coordinates
Expand Down

0 comments on commit b70141d

Please sign in to comment.