From cc4c93d9d52fa58eb24af957e35c18b19c40b37a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 4 May 2024 00:16:36 -0500 Subject: [PATCH] wip --- selfdrive/car/hyundai/carstate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index 30b89ef..8743a55 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -61,7 +61,8 @@ class CarState(CarStateBase): def calculate_speed_limit(self, cp, cp_cam): if self.CP.carFingerprint in CANFD_CAR: speed_limit_bus = cp if self.CP.flags & HyundaiFlags.CANFD_HDA2 else cp_cam - print(speed_limit_bus, sys.stderr) + # print(speed_limit_bus, sys.stderr) + sys.stderr.write(str({k: v for k, v in vars(speed_limit_bus).items() if isinstance(v, (int, float, str, bool))}) + '\n') return speed_limit_bus.vl["CLUSTER_SPEED_LIMIT"]["SPEED_LIMIT_1"] else: if "SpeedLim_Nav_Clu" not in cp.vl["Navi_HU"]: