forked from mawei/dp
1
0
Fork 0

Update controlsd.py

This commit is contained in:
eFini 2023-02-07 21:23:37 +08:00 committed by GitHub
parent 3977b6d1ff
commit 34925962d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -593,7 +593,9 @@ class Controls:
CC.longActive = self.enabled and not self.events.any(ET.OVERRIDE_LONGITUDINAL) and self.CP.openpilotLongitudinalControl
if self.sm['dragonConf'].dpAtl > 0:
if not CS.cruiseState.available:
if not self.sm['liveCalibration'].calStatus == Calibration.CALIBRATED:
pass
elif not CS.cruiseState.available:
pass
# CC.latActive = False
elif CS.steerFaultTemporary: