remove state transition

pull/32380/head
Shane Smiskol 12 months ago
parent 2f456cc61a
commit 4ea8291bf0
  1. 13
      selfdrive/car/card.py

@ -135,16 +135,6 @@ class Car:
CS.events = self.events.to_msg()
def state_transition(self, CS: car.CarState):
pass
# self.v_cruise_helper.update_v_cruise(CS, self.sm['controlsState'].enabled, self.is_metric)
#
# controlsState = self.sm['controlsState']
# if self.controlsState_prev.state == State.disabled:
# # TODO: use ENABLED_STATES from controlsd? it includes softDisabling which isn't possible here
# if controlsState.state in (State.preEnabled, State.overriding, State.enabled):
# self.v_cruise_helper.initialize_v_cruise(CS, controlsState.experimentalMode)
def state_publish(self, CS: car.CarState):
"""carState and carParams publish loop"""
@ -194,9 +184,6 @@ class Car:
self.update_events(CS)
if not self.CP.passive and self.sm['controlsState'].initialized:
self.state_transition(CS)
self.state_publish(CS)
cloudlog.timestamp("State published")

Loading…
Cancel
Save