From 431a2542c99b0bccf79cbdd9936175b6b2ea01dc Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 25 Jul 2023 01:43:28 -0700 Subject: [PATCH] navd: fix hysteresis when reaching destination (#29032) fix destination hysteresis when reaching destination --- selfdrive/navd/navd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/navd/navd.py b/selfdrive/navd/navd.py index a2fc725be..70a6b62ae 100755 --- a/selfdrive/navd/navd.py +++ b/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):