|
|
@ -31,6 +31,7 @@ def joystickd_thread(): |
|
|
|
CC.enabled = sm['selfdriveState'].enabled |
|
|
|
CC.enabled = sm['selfdriveState'].enabled |
|
|
|
CC.latActive = sm['selfdriveState'].active and not sm['carState'].steerFaultTemporary and not sm['carState'].steerFaultPermanent |
|
|
|
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.longActive = CC.enabled and not any(e.overrideLongitudinal for e in sm['onroadEvents']) and CP.openpilotLongitudinalControl |
|
|
|
|
|
|
|
CC.hudControl.leadDistanceBars = 2 |
|
|
|
|
|
|
|
|
|
|
|
actuators = CC.actuators |
|
|
|
actuators = CC.actuators |
|
|
|
|
|
|
|
|
|
|
|