From 52c28f6710fbb66f7c6f801c03419823e2ac2db4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Feb 2024 14:55:48 -0600 Subject: [PATCH] wip --- selfdrive/car/hyundai/carcontroller.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index a70088c..a19a3bd 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -154,8 +154,6 @@ class CarController: if not self.CP.openpilotLongitudinalControl: can_sends.extend(self.create_button_messages(CC, CS, use_clu11=True)) - if not self.CP.openpilotLongitudinalControl and CS.cruiseState.available and not CS.out.gasPressed and CS.cruise_buttons == Buttons.NONE - if self.frame % 2 == 0 and self.CP.openpilotLongitudinalControl: # TODO: unclear if this is needed jerk = 3.0 if actuators.longControlState == LongCtrlState.pid else 1.0 @@ -177,6 +175,7 @@ class CarController: can_sends.append(hyundaican.create_frt_radar_opt(self.packer)) # CSLC + # if not self.CP.openpilotLongitudinalControl and CS.cruiseState.available and not CS.out.gasPressed and CS.cruise_buttons == Buttons.NONE: # if False and not self.CP.openpilotLongitudinalControl and CC.enabled and CC.experimental_mode and CS.cruiseState.available and not CS.out.gasPressed and CS.cruise_buttons == Buttons.NONE: # # cslcSetSpeed = get_set_speed(self, hud_v_cruise) # cslcSetSpeed = set_speed_in_units