VW: Cleanup, migrate center-to-front ratio to CarSpecs (#31668)

* VW: Cleanup after PlatformConfig refactor

* whitespace fix
This commit is contained in:
Jason Young
2024-03-01 15:05:28 -05:00
committed by GitHub
parent b0eae8c1b7
commit e0c840cd02
2 changed files with 2 additions and 4 deletions

View File

@@ -100,11 +100,8 @@ class CarInterface(CarInterfaceBase):
ret.vEgoStopping = 0.5
ret.longitudinalTuning.kpV = [0.1]
ret.longitudinalTuning.kiV = [0.0]
# Per-chassis tuning values, override tuning defaults here if desired
ret.autoResumeSng = ret.minEnableSpeed == -1
ret.centerToFront = ret.wheelbase * 0.45
return ret
# returns a car.CarState

View File

@@ -132,6 +132,7 @@ class VolkswagenPQPlatformConfig(PlatformConfig):
@dataclass(frozen=True, kw_only=True)
class VolkswagenCarSpecs(CarSpecs):
centerToFrontRatio: float = 0.45
steerRatio: float = 15.6