FrogPilot features - Allow updates when parked

This commit is contained in:
FrogAi
2024-05-09 22:38:39 -07:00
parent 16cc2c242e
commit ffb60a5647
4 changed files with 13 additions and 6 deletions
+1
View File
@@ -207,6 +207,7 @@ static void update_state(UIState *s) {
}
if (sm.updated("carState")) {
auto carState = sm["carState"].getCarState();
scene.parked = carState.getGearShifter() == cereal::CarState::GearShifter::PARK;
}
if (sm.updated("controlsState")) {
auto controlsState = sm["controlsState"].getControlsState();