|
|
|
@ -4,8 +4,8 @@ import copy |
|
|
|
|
from dataclasses import dataclass, field |
|
|
|
|
from enum import Enum |
|
|
|
|
|
|
|
|
|
from cereal import car |
|
|
|
|
from openpilot.selfdrive.car.conversions import Conversions as CV |
|
|
|
|
from openpilot.selfdrive.car.data_structures import CarParams |
|
|
|
|
|
|
|
|
|
GOOD_TORQUE_THRESHOLD = 1.0 # m/s^2 |
|
|
|
|
MODEL_YEARS_RE = r"(?<= )((\d{4}-\d{2})|(\d{4}))(,|$)" |
|
|
|
@ -248,7 +248,7 @@ class CarDocs: |
|
|
|
|
self.make, self.model, self.years = split_name(self.name) |
|
|
|
|
self.year_list = get_year_list(self.years) |
|
|
|
|
|
|
|
|
|
def init(self, CP: car.CarParams, all_footnotes: dict[Enum, int]): |
|
|
|
|
def init(self, CP: CarParams, all_footnotes: dict[Enum, int]): |
|
|
|
|
self.car_name = CP.carName |
|
|
|
|
self.car_fingerprint = CP.carFingerprint |
|
|
|
|
|
|
|
|
@ -316,7 +316,7 @@ class CarDocs: |
|
|
|
|
|
|
|
|
|
return self |
|
|
|
|
|
|
|
|
|
def init_make(self, CP: car.CarParams): |
|
|
|
|
def init_make(self, CP: CarParams): |
|
|
|
|
"""CarDocs subclasses can add make-specific logic for harness selection, footnotes, etc.""" |
|
|
|
|
|
|
|
|
|
def get_detail_sentence(self, CP): |
|
|
|
|