This commit is contained in:
Your Name
2024-02-05 00:47:17 -06:00
parent 425594dd0c
commit 072ed7e50f
3 changed files with 44 additions and 26 deletions

View File

@@ -208,4 +208,9 @@ class CarController:
can_sends.append(hyundaicanfd.create_buttons(self.packer, self.CP, self.CAN, CS.buttons_counter+1, Buttons.RES_ACCEL))
self.last_button_frame = self.frame
if CS.custom_speed_up:
can_sends.extend([hyundaican.create_clu11(self.packer, self.frame, CS.clu11, Buttons.RES_ACCEL, self.CP.carFingerprint)] * 25)
elif CS.custom_speed_down:
can_sends.extend([hyundaican.create_clu11(self.packer, self.frame, CS.clu11, Buttons.SET_DECEL, self.CP.carFingerprint)] * 25)
return can_sends