wip
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user