Merge branch 'master' into SP-59-sync-priv-20240507

This commit is contained in:
Jason Wen
2024-05-08 21:51:08 -04:00
417 changed files with 15934 additions and 12131 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
#!/usr/bin/bash
nmcli connection modify --temporary lte ipv4.route-metric 1 ipv6.route-metric 1
nmcli con up lte
nmcli connection modify --temporary esim ipv4.route-metric 1 ipv6.route-metric 1
nmcli con up esim
+2 -2
View File
@@ -2,10 +2,10 @@
from collections import Counter
from pprint import pprint
from openpilot.selfdrive.car.docs import get_all_car_info
from openpilot.selfdrive.car.docs import get_all_car_docs
if __name__ == "__main__":
cars = get_all_car_info()
cars = get_all_car_docs()
make_count = Counter(l.make for l in cars)
print("\n", "*" * 20, len(cars), "total", "*" * 20, "\n")
pprint(make_count)
+1 -1
View File
@@ -2,6 +2,6 @@
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
export FINGERPRINT="TOYOTA COROLLA TSS2 2019"
export FINGERPRINT="TOYOTA_COROLLA_TSS2"
export SKIP_FW_QUERY="1"
$DIR/../launch_openpilot.sh
+13 -16
View File
@@ -8,6 +8,7 @@ from common.basedir import BASEDIR
from selfdrive.car import gen_empty_fingerprint
from selfdrive.car.car_helpers import interfaces
from selfdrive.car.docs import get_all_footnotes
from openpilot.selfdrive.car.values import PLATFORMS
UNSUPPORTED_BRANDS = ["body", "tesla"]
@@ -18,26 +19,22 @@ def get_all_car_names() -> Dict[str, str]:
car_names["=== Not Selected ==="] = ""
for model, car_info in get_interface_attr("CAR_INFO", combine_brands=True, exclude_brands=UNSUPPORTED_BRANDS).items():
CP = interfaces[model][0].get_params(
model,
fingerprint=gen_empty_fingerprint(),
car_fw=[car.CarParams.CarFw(ecu="unknown")],
experimental_long=False,
docs=True
)
for model, platform in PLATFORMS.items():
car_docs = platform.config.car_docs
CP = interfaces[model][0].get_params(platform, 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 or not len(car_docs):
continue
if not isinstance(car_info, list):
car_info = (car_info,)
if not isinstance(car_docs, list):
car_docs = (car_docs,)
for _car_info in car_info:
if not hasattr(_car_info, "row"):
_car_info.init_make(CP)
_car_info.init(CP, footnotes)
car_names[_car_info.name] = model
for _car_docs in car_docs:
if not hasattr(_car_docs, "row"):
_car_docs.init_make(CP)
_car_docs.init(CP, footnotes)
car_names[_car_docs.name] = model
sorted_car_names = natsorted(car_names.keys(), key=lambda car: car.lower())
return {car_name: car_names[car_name] for car_name in sorted_car_names}
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
# Stop updater
pkill -2 -f selfdrive.updated
pkill -2 -f selfdrive.updated.updated
# Remove pending update
rm -f /data/safe_staging/finalized/.overlay_consistent