GM: Fix wheel direction signals (#31258)
* Fix wheel direction signals * Update name * Add comment * Remove signal value table Co-authored-by: Shane Smiskol <shane@smiskol.com> * bump * add 3 --------- Co-authored-by: Shane Smiskol <shane@smiskol.com> old-commit-hash: 1ab37454009d5a40e441350e1abaa615ab36ec6d
This commit is contained in:
2
opendbc
2
opendbc
Submodule opendbc updated: 3cfd0bf4eb...7397e466d9
@@ -33,7 +33,9 @@ class CarState(CarStateBase):
|
||||
self.cruise_buttons = pt_cp.vl["ASCMSteeringButton"]["ACCButtons"]
|
||||
self.buttons_counter = pt_cp.vl["ASCMSteeringButton"]["RollingCounter"]
|
||||
self.pscm_status = copy.copy(pt_cp.vl["PSCMStatus"])
|
||||
self.moving_backward = pt_cp.vl["EBCMWheelSpdRear"]["MovingBackward"] != 0
|
||||
# This is to avoid a fault where you engage while still moving backwards after shifting to D.
|
||||
# An Equinox has been seen with an unsupported status (3), so only check if either wheel is in reverse (2)
|
||||
self.moving_backward = (pt_cp.vl["EBCMWheelSpdRear"]["RLWheelDir"] == 2) or (pt_cp.vl["EBCMWheelSpdRear"]["RRWheelDir"] == 2)
|
||||
|
||||
# Variables used for avoiding LKAS faults
|
||||
self.loopback_lka_steering_cmd_updated = len(loopback_cp.vl_all["ASCMLKASteeringCmd"]["RollingCounter"]) > 0
|
||||
|
||||
Reference in New Issue
Block a user