navd: avoid re-routing back to past waypoints

pull/26811/head
Adeeb Shihadeh 2 years ago
parent 2ac87a0a45
commit 951ceecadd
  1. 4
      selfdrive/navd/navd.py

@ -191,6 +191,10 @@ class RouteEngine:
cloudlog.warning("Got empty route response")
self.clear_route()
# clear waypoints to avoid a re-route including past waypoints
# TODO: only clear once we're past a waypoint
self.params.remove('NavDestinationWaypoints')
except requests.exceptions.RequestException:
cloudlog.exception("failed to get route")
self.clear_route()

Loading…
Cancel
Save