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>
pull/30910/head
Eric Brown 1 year ago committed by GitHub
parent 5c85925e9b
commit 1ab3745400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      opendbc
  2. 4
      selfdrive/car/gm/carstate.py

@ -1 +1 @@
Subproject commit 3cfd0bf4eb73953f3d179dddc1ba2c92e317188c
Subproject commit 7397e466d9cfd7f5bc1f49218b8d2afeedec582b

@ -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

Loading…
Cancel
Save