Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 21, 2023
1 parent 7d6d9fe commit db5e13b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ jobs:
run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info"
sudo chown -R $USER:$USER ${{ github.workspace }}
- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: ~/openpilot_cache/base_car_info
- uses: actions/checkout@v3
with:
submodules: true
Expand Down
3 changes: 3 additions & 0 deletions selfdrive/car/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ 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():
print(model, car_info)

# 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)
Expand All @@ -48,6 +50,7 @@ def get_all_car_info() -> List[CarInfo]:

# Sort cars by make and model + year
sorted_cars: List[CarInfo] = natsorted(all_car_info, key=lambda car: car.name.lower())
print(sorted_cars)
return sorted_cars


Expand Down

0 comments on commit db5e13b

Please sign in to comment.