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.
MIT License
57 stars 39 forks source link

Update dbc for EBCMBrakePedalPosition.BrakePedalPosition to replace the scaling performed in carstate.py #47

Closed JasonJShuler closed 2 years ago

JasonJShuler commented 2 years ago

carstate.py is dividing the value by 0xd0. This should be done in the dbc.

ret.brake = pt_cp.vl["EBCMBrakePedalPosition"]["BrakePedalPosition"] / 0xd0

JasonJShuler commented 2 years ago

This is being worked on my Shane and Adeeb