controlsd: fix soft disable while overriding (#24178)

pull/24183/head^2
Adeeb Shihadeh 3 years ago committed by GitHub
parent cf6c0ef19a
commit 37fc027e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/controls/controlsd.py

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

Loading…
Cancel
Save