mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-14 05:42:13 +08:00
UI: show steering wheel icon while engaged or engageable
old-commit-hash: 78b97eaa3611e2bcf27f6363a1574c44bd42c760
This commit is contained in:
+2
-1
@@ -108,7 +108,8 @@ static void update_state(UIState *s) {
|
||||
|
||||
// update engageability and DM icons at 2Hz
|
||||
if (sm.frame % (UI_FREQ / 2) == 0) {
|
||||
scene.engageable = sm["controlsState"].getControlsState().getEngageable();
|
||||
auto cs = sm["controlsState"].getControlsState();
|
||||
scene.engageable = cs.getEngageable() || cs.getEnabled();
|
||||
scene.dm_active = sm["driverMonitoringState"].getDriverMonitoringState().getIsActiveMode();
|
||||
}
|
||||
if (sm.updated("modelV2") && s->vg) {
|
||||
|
||||
Reference in New Issue
Block a user