Skip to content

Commit

Permalink
docs: include dashcam (commaai#31004)
Browse files Browse the repository at this point in the history
include dashcam
  • Loading branch information
sshane authored Jan 15, 2024
1 parent 4c6f7da commit f256225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def get_all_footnotes() -> Dict[Enum, int]:
CARS_MD_TEMPLATE = os.path.join(BASEDIR, "selfdrive", "car", "CARS_template.md")


def get_all_car_info() -> List[CarInfo]:
def get_all_car_info(include_dashcam_only: bool = False) -> List[CarInfo]:
all_car_info: List[CarInfo] = []
footnotes = get_all_footnotes()
for model, car_info in get_interface_attr("CAR_INFO", combine_brands=True).items():
# If available, uses experimental longitudinal limits for the docs
CP = interfaces[model][0].get_params(model, fingerprint=gen_empty_fingerprint(),
car_fw=[car.CarParams.CarFw(ecu="unknown")], experimental_long=True, docs=True)

if CP.dashcamOnly or car_info is None:
if (CP.dashcamOnly and not include_dashcam_only) or car_info is None:
continue

# A platform can include multiple car models
Expand Down

0 comments on commit f256225

Please sign in to comment.