opgm / openpilot

GM openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 100 supported car makes and models.
https://standbacklabs.com
MIT License
57 stars 37 forks source link

GM: SDGM BSM to correct bus #108

Closed garrettpall closed 2 months ago

nworb-cire commented 2 months ago

Can you change this so there is a single if statement at the top of the method, like this?

if self.CP.carFingerprint in SDGM_CAR:
  cp = cam_cp
else:
  cp = pt_cp

And then clean up all of the other if statements.