This commit is contained in:
Your Name
2024-05-04 03:17:43 -05:00
parent 06af3ed0bb
commit 2d86352097
2 changed files with 2 additions and 7 deletions

View File

@@ -288,11 +288,6 @@ static bool hyundai_tx_hook(const CANPacket_t *to_send) {
if (!(allowed_resume || allowed_cancel)) {
tx = false;
}
// CLEARPILOT - Allow buttons 1 (accel), 2 (decel), 4 (pause/resume)
// if (!(button == 1 || button == 2 || button == 3)) {
// tx = false;
// }
}
return tx;

View File

@@ -122,8 +122,8 @@ class CarController(CarControllerBase):
# LFA and HDA icons
if self.frame % 5 == 0 and (not hda2 or hda2_long):
# CLEARPILOT TEST self.CS.lkas_enabled
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled, CC.latActive))
# can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CS.lkas_enabled, CS.lkas_enabled))
# can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled, CC.latActive))
can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CS.lkas_enabled, CS.lkas_enabled))
# blinkers
if hda2 and self.CP.flags & HyundaiFlags.ENABLE_BLINKERS: