mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
nav: show green path when enabled (#29020)
* draft
* draft
* clean up
* clean up
* cleaner
* needs to be here to work
* or this works
* works too
* stash
* clean up qdebugs
* revert to master
* reapply changes
add bool
* consistent cmts
* clean up
* can be simpler combined
* clean up/fix
old-commit-hash: 7a673c87ff
This commit is contained in:
@@ -141,7 +141,8 @@ void MapWindow::updateState(const UIState &s) {
|
||||
|
||||
if (sm.updated("modelV2")) {
|
||||
// set path color on change, and show map on rising edge of navigate on openpilot
|
||||
bool nav_enabled = sm["modelV2"].getModelV2().getNavEnabled();
|
||||
bool nav_enabled = sm["modelV2"].getModelV2().getNavEnabled() &&
|
||||
sm["controlsState"].getControlsState().getEnabled();
|
||||
if (nav_enabled != uiState()->scene.navigate_on_openpilot) {
|
||||
if (loaded_once) {
|
||||
m_map->setPaintProperty("navLayer", "line-color", getNavPathColor(nav_enabled));
|
||||
|
||||
Reference in New Issue
Block a user