|
|
@ -166,7 +166,7 @@ class Controls: |
|
|
|
|
|
|
|
|
|
|
|
def set_initial_state(self): |
|
|
|
def set_initial_state(self): |
|
|
|
if REPLAY: |
|
|
|
if REPLAY: |
|
|
|
controls_state = Params().get("ReplayControlsState") |
|
|
|
controls_state = self.params.get("ReplayControlsState") |
|
|
|
if controls_state is not None: |
|
|
|
if controls_state is not None: |
|
|
|
with log.ControlsState.from_bytes(controls_state) as controls_state: |
|
|
|
with log.ControlsState.from_bytes(controls_state) as controls_state: |
|
|
|
self.v_cruise_helper.v_cruise_kph = controls_state.vCruise |
|
|
|
self.v_cruise_helper.v_cruise_kph = controls_state.vCruise |
|
|
|