From 9bb9d6ed2c4da1c19bd0155115a3094cf5ed1109 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 12 May 2025 00:16:27 -0500 Subject: [PATCH] Panda fix --- selfdrive/car/gm/interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/car/gm/interface.py b/selfdrive/car/gm/interface.py index e432af097..9f11ac097 100644 --- a/selfdrive/car/gm/interface.py +++ b/selfdrive/car/gm/interface.py @@ -314,6 +314,10 @@ class CarInterface(CarInterfaceBase): if ACCELERATOR_POS_MSG not in fingerprint[CanBus.POWERTRAIN]: ret.flags |= GMFlags.NO_ACCELERATOR_POS_MSG.value + # CAM_LONG flag only if camera-capable and conditional_experimental_mode enabled + if candidate in CAMERA_ACC_CAR and getattr(frogpilot_toggles, "conditional_experimental_mode", False): + ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM_LONG + return ret # returns a car.CarState