navd: fix hysteresis when reaching destination (#29032)

fix destination hysteresis when reaching destination
old-commit-hash: 431a2542c9
beeps
Shane Smiskol 2 years ago committed by GitHub
parent ec900d0389
commit bb46c0e3a0
  1. 2
      selfdrive/navd/navd.py

@ -274,11 +274,11 @@ class RouteEngine:
self.reset_recompute_limits()
else:
cloudlog.warning("Destination reached")
Params().remove("NavDestination")
# Clear route if driving away from destination
dist = self.nav_destination.distance_to(self.last_position)
if dist > REROUTE_DISTANCE:
self.params.remove("NavDestination")
self.clear_route()
def send_route(self):

Loading…
Cancel
Save