Skip to content

Commit

Permalink
Chrysler: fix steering angle signals (commaai#24926)
Browse files Browse the repository at this point in the history
* Chrysler_Update

* only steering

* revert other changes for now

only steering

* bump

* Update ref_commit

* bump opendbc

* update refs

Co-authored-by: Jonathan <jraycec@gmail.com>
  • Loading branch information
2 people authored and spektor56 committed Jul 1, 2022
1 parent 26f8b3f commit 1d8ac12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rednose_repo
4 changes: 2 additions & 2 deletions selfdrive/car/chrysler/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def update(self, cp, cp_cam):

ret.leftBlinker = cp.vl["STEERING_LEVERS"]["TURN_SIGNALS"] == 1
ret.rightBlinker = cp.vl["STEERING_LEVERS"]["TURN_SIGNALS"] == 2
ret.steeringAngleDeg = cp.vl["STEERING"]["STEER_ANGLE"]
ret.steeringRateDeg = cp.vl["STEERING"]["STEERING_RATE"]
ret.gearShifter = self.parse_gear_shifter(self.shifter_values.get(cp.vl["GEAR"]["PRNDL"], None))

ret.cruiseState.available = cp.vl["DAS_3"]["ACC_AVAILABLE"] == 1 # ACC is white
Expand All @@ -58,6 +56,8 @@ def update(self, cp, cp_cam):
ret.cruiseState.nonAdaptive = cp.vl["DASHBOARD"]["CRUISE_STATE"] in (1, 2)
ret.accFaulted = cp.vl["DAS_3"]["ACC_FAULTED"] != 0

ret.steeringAngleDeg = cp.vl["STEERING"]["STEER_ANGLE"]
ret.steeringRateDeg = cp.vl["STEERING"]["STEERING_RATE"]
ret.steeringTorque = cp.vl["EPS_STATUS"]["TORQUE_DRIVER"]
ret.steeringTorqueEps = cp.vl["EPS_STATUS"]["TORQUE_MOTOR"]
ret.steeringPressed = abs(ret.steeringTorque) > STEER_THRESHOLD
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/test/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2ee969b34585f8055bb3eabab2dcc4061cc4bef9
a0b5ce7b2e0b9c073e51ac8908402d53e1d99722

0 comments on commit 1d8ac12

Please sign in to comment.