This commit is contained in:
Jason Wen
2024-04-26 22:55:02 -04:00
parent b8d53752fa
commit 56ee796b90
+1 -1
View File
@@ -137,7 +137,7 @@ class CarController(CarControllerBase):
can_sends.extend(hyundaicanfd.create_radar_aux_messages(self.packer, self.CAN, self.frame))
if self.frame % 2 == 0:
if can_canfd_hybrid:
upper = 3.0 if actuators.longControlState == LongCtrlState.pid else 1.0
upper_jerk = 3.0 if actuators.longControlState == LongCtrlState.pid else 1.0
can_sends.extend(hyundaicanfd.create_acc_commands_can_canfd_hybrid(self.packer, self.CAN, CC.enabled, accel, self.accel_last, upper_jerk,
int(self.frame / 2), hud_control.leadVisible,
set_speed_in_units, stopping, CC.cruiseControl.override, hud_control))