diff --git a/selfdrive/car/subaru/interface.py b/selfdrive/car/subaru/interface.py index fb2062ac2e..70989df5ba 100644 --- a/selfdrive/car/subaru/interface.py +++ b/selfdrive/car/subaru/interface.py @@ -40,9 +40,10 @@ class CarInterface(CarInterfaceBase): else: CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning) - ret.mass = candidate.config.specs.mass - ret.wheelbase = candidate.config.specs.wheelbase - ret.steerRatio = candidate.config.specs.steerRatio + platform_config = CAR(candidate).config + ret.mass = platform_config.specs.mass + ret.wheelbase = platform_config.specs.wheelbase + ret.steerRatio = platform_config.specs.steerRatio ret.centerToFront = ret.wheelbase * 0.5 if candidate in (CAR.ASCENT, CAR.ASCENT_2023):