From 39f3c21632002f4cf00160c8c9e0ae0f2659ecb5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 4 May 2024 00:55:36 -0500 Subject: [PATCH] wip --- selfdrive/car/hyundai/carstate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index ff9a7c8..7bc0af0 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -60,6 +60,7 @@ class CarState(CarStateBase): # Clearpilot variables self.fix_main_enabled_check = True + self.fix_main_enabled_executed = False def calculate_speed_limit(self, cp, cp_cam): if self.CP.carFingerprint in CANFD_CAR: @@ -302,6 +303,8 @@ class CarState(CarStateBase): # sys.stderr.write(str({k: v for k, v in vars(ret).items() if isinstance(v, (int, float, str, bool))}) + '\n') # print(ret, sys.stderr) print(ret.cruiseState, sys.stderr) + print(["fix_main_enabled_check": fix_main_enabled_check], sys.stderr) + print(["fix_main_enabled_executed": fix_main_enabled_executed], sys.stderr) # notes on self: # lkas_enabled = 1 = lkas button has been pressed # prev_cruise_buttons = 0 (none), 1, 2 - up down