Run the updater when parked

This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 6d1cf97da4
commit 3a38bed701
6 changed files with 14 additions and 8 deletions

View File

@@ -240,6 +240,7 @@ static void update_state(UIState *s) {
if (scene.rotating_wheel) {
scene.steering_angle_deg = carState.getSteeringAngleDeg();
}
scene.parked = carState.getGearShifter() == cereal::CarState::GearShifter::PARK;
}
if (sm.updated("controlsState")) {
auto controlsState = sm["controlsState"].getControlsState();