diff --git a/selfdrive/navd/navd.py b/selfdrive/navd/navd.py index 7af911ab2a..d5d48e2ad0 100755 --- a/selfdrive/navd/navd.py +++ b/selfdrive/navd/navd.py @@ -76,6 +76,7 @@ class RouteEngine: self.update_location() self.recompute_route() self.send_instruction() + self.send_route() def update_location(self): location = self.sm['liveLocationKalman'] diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index f39bdfe95a..94b94eb2df 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -135,11 +135,15 @@ void MapWindow::updateState(const UIState &s) { const SubMaster &sm = *(s.sm); update(); + qDebug() << "updateState()"; + if (sm.updated("modelV2")) { bool nav_enabled = sm["modelV2"].getModelV2().getNavEnabled(); if (nav_enabled != uiState()->scene.navigate_on_openpilot) { // Set path color on change, and show map on rising edge of navigate on openpilot + qDebug() << "going to change path color:" << loaded_once; if (loaded_once) { + qDebug() << "setting path color on change!"; m_map->setPaintProperty("navLayer", "line-color", getPathColor(nav_enabled)); } if (nav_enabled) {