From 8e9be48b7b02e679868b50aab34cd38cb48b3905 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 15 Jan 2024 23:49:07 -0800 Subject: [PATCH] Revert "docs: include dashcam" (#31017) --- selfdrive/car/docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/docs.py b/selfdrive/car/docs.py index 5142b6fc15..8475a69d8a 100755 --- a/selfdrive/car/docs.py +++ b/selfdrive/car/docs.py @@ -25,7 +25,7 @@ CARS_MD_OUT = os.path.join(BASEDIR, "docs", "CARS.md") CARS_MD_TEMPLATE = os.path.join(BASEDIR, "selfdrive", "car", "CARS_template.md") -def get_all_car_info(include_dashcam_only: bool = False) -> List[CarInfo]: +def get_all_car_info() -> 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(): @@ -33,7 +33,7 @@ def get_all_car_info(include_dashcam_only: bool = False) -> List[CarInfo]: 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 and not include_dashcam_only) or car_info is None: + if CP.dashcamOnly or car_info is None: continue # A platform can include multiple car models