From 7949e90b7527fde0b130ba32150124e5489a61a8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 5 Feb 2024 03:05:34 -0600 Subject: [PATCH] wip --- selfdrive/car/hyundai/carstate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index 93121cf..ae3b535 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -296,9 +296,8 @@ class CarState(CarStateBase): self.hda2_lfa_block_msg = copy.copy(cp_cam.vl["CAM_0x362"] if self.CP.flags & HyundaiFlags.CANFD_HDA2_ALT_STEERING else cp_cam.vl["CAM_0x2a4"]) - # Maybe a try catch? SpeedLimitController.load_state() - SpeedLimitController.car_speed_limit = self.calculate_speed_limit_canfd(self.CP, cp, cp_cam) * speed_conv + SpeedLimitController.car_speed_limit = self.calculate_speed_limit_canfd(self.CP, cp, cp_cam) * speed_factor SpeedLimitController.write_car_state() self.custom_speed_up = False