mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-20 23:53:44 +08:00
committed by
Comma Device
parent
0094c9ac06
commit
cbd22eca29
@@ -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')))
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user