Run the updater when parked
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user