Skip to content

Commit

Permalink
Toyota SAS
Browse files Browse the repository at this point in the history
  • Loading branch information
wocsor committed Sep 21, 2023
1 parent ffa8edb commit b3b40da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendbc
Submodule opendbc updated 1 files
+5 −0 ocelot_controls.dbc
4 changes: 2 additions & 2 deletions selfdrive/car/ocelot/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def update(self, cp, cp_body):

# Toyota SAS
# Do we need an angle sensor for demo?
ret.steeringAngleDeg = 0 # cp_body.vl["STEER_ANGLE_SENSOR"]['STEER_ANGLE']
ret.steeringRateDeg = 0 # cp_body.vl["VSC"]['STEER_RATE']
ret.steeringAngleDeg = cp.vl["TOYOTA_STEERING_ANGLE_SENSOR1"]['TOYOTA_STEER_ANGLE'] + cp.vl["TOYOTA_STEERING_ANGLE_SENSOR1"]['TOYOTA_STEER_FRACTION']
ret.steeringRateDeg = cp.vl["TOYOTA_STEERING_ANGLE_SENSOR1"]['TOYOTA_STEER_RATE']


# Steering information from smart standin ECU
Expand Down

0 comments on commit b3b40da

Please sign in to comment.