Skip to content

Commit

Permalink
sorento fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
royjr committed Dec 23, 2024
1 parent def9487 commit 47c8336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opendbc/car/hyundai/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ def update_canfd(self, can_parsers) -> structs.CarState:
ret.vEgo, ret.aEgo = self.update_speed_kf(ret.vEgoRaw)
ret.standstill = ret.wheelSpeeds.fl <= STANDSTILL_THRESHOLD and ret.wheelSpeeds.rr <= STANDSTILL_THRESHOLD

if self.is_metric and self.CP.carFingerprint in (CAR.KIA_SORENTO_2024,):
ret.vEgoCluster = ret.vEgo * CV.MPH_TO_KPH

ret.steeringRateDeg = cp.vl["STEERING_SENSORS"]["STEERING_RATE"]
ret.steeringAngleDeg = cp.vl["STEERING_SENSORS"]["STEERING_ANGLE"] * -1
ret.steeringTorque = cp.vl["MDPS"]["STEERING_COL_TORQUE"]
Expand Down

0 comments on commit 47c8336

Please sign in to comment.