From 2d863520979f224a349fd3a20fd120240540a899 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 4 May 2024 03:17:43 -0500 Subject: [PATCH] wip --- panda/board/safety/safety_hyundai.h | 5 ----- selfdrive/car/hyundai/carcontroller.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/panda/board/safety/safety_hyundai.h b/panda/board/safety/safety_hyundai.h index 1fccf13..a849a87 100644 --- a/panda/board/safety/safety_hyundai.h +++ b/panda/board/safety/safety_hyundai.h @@ -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; diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 15b93c3..f7b83a9 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -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: