debubuggier param name

pull/25461/head
Shane Smiskol 3 years ago
parent 930e322bec
commit 72339dc05e
  1. 2
      common/params.cc
  2. 2
      selfdrive/controls/controlsd.py
  3. 4
      selfdrive/test/process_replay/process_replay.py

@ -93,7 +93,6 @@ std::unordered_map<std::string, uint32_t> keys = {
{"CarVin", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON}, {"CarVin", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"CompletedTrainingVersion", PERSISTENT}, {"CompletedTrainingVersion", PERSISTENT},
{"ControlsReady", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON}, {"ControlsReady", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"ControlsState", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON}, {"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"DashcamOverride", PERSISTENT}, {"DashcamOverride", PERSISTENT},
{"DisableLogging", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON}, {"DisableLogging", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
@ -152,6 +151,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"RecordFront", PERSISTENT}, {"RecordFront", PERSISTENT},
{"RecordFrontLock", PERSISTENT}, // for the internal fleet {"RecordFrontLock", PERSISTENT}, // for the internal fleet
{"ReleaseNotes", PERSISTENT}, {"ReleaseNotes", PERSISTENT},
{"ReplayControlsState", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
{"ShouldDoUpdate", CLEAR_ON_MANAGER_START}, {"ShouldDoUpdate", CLEAR_ON_MANAGER_START},
{"SnoozeUpdate", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF}, {"SnoozeUpdate", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_OFF},
{"SshEnabled", PERSISTENT}, {"SshEnabled", PERSISTENT},

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

@ -416,9 +416,9 @@ def setup_env(simulation=False, CP=None, cfg=None, controlsState=None):
# Initialize controlsd with a controlsState packet # Initialize controlsd with a controlsState packet
if controlsState is not None: if controlsState is not None:
params.put("ControlsState", controlsState.as_builder().to_bytes()) params.put("ReplayControlsState", controlsState.as_builder().to_bytes())
else: else:
params.delete("ControlsState") params.delete("ReplayControlsState")
# Regen or python process # Regen or python process
if CP is not None: if CP is not None:

Loading…
Cancel
Save