carspecs: add more units (#31646)

more units
pull/31637/head
Justin Newberry 1 year ago committed by GitHub
parent 251eee4664
commit f775faf26d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      selfdrive/car/__init__.py

@ -251,11 +251,11 @@ CarInfos = CarInfo | list[CarInfo]
@dataclass(frozen=True, kw_only=True) @dataclass(frozen=True, kw_only=True)
class CarSpecs: class CarSpecs:
mass: float # kg, curb weight mass: float # kg, curb weight
wheelbase: float wheelbase: float # meters
steerRatio: float steerRatio: float
centerToFrontRatio: float = 0.5 centerToFrontRatio: float = 0.5
minSteerSpeed: float = 0.0 minSteerSpeed: float = 0.0 # m/s
minEnableSpeed: float = -1.0 minEnableSpeed: float = -1.0 # m/s
@dataclass(order=True) @dataclass(order=True)

Loading…
Cancel
Save