From 09b68eef3e205f66413a203163d1c4e7b2f3bb68 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 6 Nov 2024 16:41:45 -0600 Subject: [PATCH] fix lead distance bars w/ joystick mode (#33942) --- tools/joystick/joystickd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/joystick/joystickd.py b/tools/joystick/joystickd.py index f8c000c259..dc1186c294 100755 --- a/tools/joystick/joystickd.py +++ b/tools/joystick/joystickd.py @@ -31,6 +31,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.hudControl.leadDistanceBars = 2 actuators = CC.actuators