From 34925962d53f56403de42bef87ad4debc4fef346 Mon Sep 17 00:00:00 2001 From: eFini Date: Tue, 7 Feb 2023 21:23:37 +0800 Subject: [PATCH] Update controlsd.py --- selfdrive/controls/controlsd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index e29f7b16f..8d973f0a3 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -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: