From b7cb5c889302d5c3282d6b2a5ed6ac0ef8586bb1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 4 Feb 2024 23:36:57 -0600 Subject: [PATCH] wip --- selfdrive/car/hyundai/carcontroller.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 0b59a72..c6dfeac 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -114,13 +114,14 @@ class CarController: can_sends.extend(hyundaicanfd.create_steering_messages(self.packer, self.CP, self.CAN, CC.enabled, apply_steer_req, apply_steer)) # MODIFIED BBOT - # if self.frame % 5 == 0 and hda2: - # can_sends.append(hyundaicanfd.create_suppress_lfa(self.packer, self.CAN, CS.hda2_lfa_block_msg, - # self.CP.flags & HyundaiFlags.CANFD_HDA2_ALT_STEERING)) + if self.frame % 5 == 0 and hda2: + can_sends.append(hyundaicanfd.create_suppress_lfa(self.packer, self.CAN, CS.hda2_lfa_block_msg, + self.CP.flags & HyundaiFlags.CANFD_HDA2_ALT_STEERING)) + # MODIFIED BBOT # LFA and HDA icons - # if self.frame % 5 == 0 and (not hda2 or hda2_long): - # can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled)) + if self.frame % 5 == 0 and (not hda2 or hda2_long): + can_sends.append(hyundaicanfd.create_lfahda_cluster(self.packer, self.CAN, CC.enabled)) # blinkers if hda2 and self.CP.flags & HyundaiFlags.ENABLE_BLINKERS: