longActive: consider longitudinal control (#24295)

* consider longitudinal control

* update refs
old-commit-hash: f4d1703b42
taco
Shane Smiskol 3 years ago committed by GitHub
parent 66065b527b
commit 82e5b382f1
  1. 2
      selfdrive/controls/controlsd.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -538,7 +538,7 @@ class Controls:
# Check which actuators can be enabled
CC.latActive = self.active and not CS.steerFaultTemporary and not CS.steerFaultPermanent and \
CS.vEgo > self.CP.minSteerSpeed and not CS.standstill
CC.longActive = self.active and not self.events.any(ET.OVERRIDE)
CC.longActive = self.active and not self.events.any(ET.OVERRIDE) and self.CP.openpilotLongitudinalControl
actuators = CC.actuators
actuators.longControlState = self.LoC.long_control_state

@ -1 +1 @@
37aac3b4090fcc2f5a0e52c0eb4913706688d3fd
fe7b24c1914046a3a7be19b6e812984e7e14301d
Loading…
Cancel
Save