carspecs: add more units (#31646)

more units
old-commit-hash: f775faf26d
pull/32199/head
Justin Newberry 1 year ago committed by GitHub
parent 220ac6c422
commit b17981eced
  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