dragonpilot beta3

date: 2024-07-13T18:45:35
commit: c25d768a9e
This commit is contained in:
dragonpilot
2024-07-13 18:44:15 +08:00
committed by Comma Device
parent 0094c9ac06
commit cbd22eca29
228 changed files with 13037 additions and 2770 deletions
+9
View File
@@ -75,6 +75,15 @@ def manager_init() -> None:
("dp_toyota_enhanced_bsm", "0"),
("dp_toyota_auto_brake_hold", "0"),
("dp_toyota_sng", "0"),
("dp_tetoo", "0"),
("dp_tetoo_data", ""),
("dp_tetoo_gps", ""),
("dp_tetoo_speed_camera_taiwan", "0"),
("dp_tetoo_speed_camera_threshold", "0"),
("dp_long_de2e_road_condition", "1"), # on by default, depends on dp_long_de2e
("dp_device_auto_shutdown", "0"),
("dp_device_auto_shutdown_in", "30"),
("dp_device_audible_alert_mode", "0"),
]
if not PC:
default_params.append(("LastUpdateTime", datetime.datetime.now(datetime.UTC).replace(tzinfo=None).isoformat().encode('utf8')))
+4
View File
@@ -53,6 +53,9 @@ def dp_onroad_uploads(started, params, CP: car.CarParams) -> bool:
def dpdmonitoringd(started, params, CP: car.CarParams) -> bool:
return params.get_bool("dp_device_dm_unavailable") and started
def tetood(started, params, CP: car.CarParams) -> bool:
return started and (params.get_bool("dp_tetoo") or params.get_bool("dp_tetoo_speed_camera_taiwan"))
procs = [
DaemonProcess("manage_athenad", "system.athena.manage_athenad", "AthenadPid"),
@@ -100,6 +103,7 @@ procs = [
#dp
PythonProcess("dpdmonitoringd", "dp_ext.selfdrive.monitoring.dmonitoringd", dpdmonitoringd, enabled=not PC),
NativeProcess("tetood", "dp_ext/selfdrive/tetood", ["./tetood"], tetood),
]
managed_processes = {p.name: p for p in procs}