From 49c3b8fc341a7fb1968bd00ba86a7559feed17bf Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 22 Jul 2026 17:24:38 -0700 Subject: [PATCH] joystick: add override state (#38423) fix js joverride --- openpilot/tools/joystick/joystickd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpilot/tools/joystick/joystickd.py b/openpilot/tools/joystick/joystickd.py index ce8b581848..2b84683863 100755 --- a/openpilot/tools/joystick/joystickd.py +++ b/openpilot/tools/joystick/joystickd.py @@ -34,6 +34,7 @@ def joystickd_thread(): CC.enabled = sm['selfdriveState'].enabled CC.latActive = sm['selfdriveState'].active and not sm['carState'].steerFaultTemporary and not sm['carState'].steerFaultPermanent CC.longActive = CC.enabled and not any(e.overrideLongitudinal for e in sm['onroadEvents']) and CP.openpilotLongitudinalControl + CC.cruiseControl.override = CC.enabled and not CC.longActive and CP.openpilotLongitudinalControl CC.cruiseControl.cancel = sm['carState'].cruiseState.enabled and (not CC.enabled or not CP.pcmCruise) CC.hudControl.leadDistanceBars = 2