From 455aa3d1406db7ab22d12d4e20968b9f2a853146 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 9 Sep 2024 19:49:56 -0400 Subject: [PATCH] more fix --- selfdrive/car/hyundai/carcontroller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 32f20e518b..c18d85c50e 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -84,11 +84,10 @@ class CarController(CarControllerBase): return 19 if hud_control.leadVisible else 0 def update(self, CC, CS, now_nanos): - if self.CP.openpilotLongitudinalControl and self.frame % 5 == 0: - self.sm.update(0) - if not self.CP.pcmCruiseSpeed: self.custom_stock_longitudinal_controller.update(CS) + elif self.CP.openpilotLongitudinalControl: + self.sm.update(0) actuators = CC.actuators hud_control = CC.hudControl