fix lead distance bars w/ joystick mode (#33942)

pull/33941/head^2
Shane Smiskol 6 months ago committed by GitHub
parent 3474eb3d96
commit 09b68eef3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      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

Loading…
Cancel
Save