Skip to content

Commit

Permalink
RETROPILOT FIX: white panda support by ignoring uBloxRaw state in NOS…
Browse files Browse the repository at this point in the history
…ENSOR mode
  • Loading branch information
florianbrede-ayet committed Apr 12, 2021
1 parent 0354d51 commit 50fc9e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(self, sm=None, pm=None, can_sock=None):

self.sm = sm
if self.sm is None:
ignore = ['ubloxRaw', 'driverCameraState', 'managerState'] if SIMULATION else None
ignore = ['ubloxRaw'] if NOSENSOR else None
ignore = ['ubloxRaw', 'driverCameraState', 'managerState'] if SIMULATION else ignore

self.sm = messaging.SubMaster(['deviceState', 'pandaState', 'modelV2', 'liveCalibration', 'ubloxRaw',
'driverMonitoringState', 'longitudinalPlan', 'lateralPlan', 'liveLocationKalman',
'roadCameraState', 'driverCameraState', 'managerState', 'liveParameters', 'radarState'], ignore_alive=ignore)
Expand Down

0 comments on commit 50fc9e5

Please sign in to comment.