From bef3c7fbd270414e7072bcf5b40d3835236ec66a Mon Sep 17 00:00:00 2001 From: royjr Date: Mon, 23 Dec 2024 11:47:15 -0500 Subject: [PATCH] sorento fix v2 --- opendbc/car/hyundai/carstate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opendbc/car/hyundai/carstate.py b/opendbc/car/hyundai/carstate.py index 848dab8bb4..d6d82e950e 100644 --- a/opendbc/car/hyundai/carstate.py +++ b/opendbc/car/hyundai/carstate.py @@ -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 * 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"]