Guten Morgen

This commit is contained in:
firestar5683
2026-09-05 11:21:21 -05:00
parent 097d63caef
commit cec1a0fb62
26 changed files with 429 additions and 48 deletions
+9 -1
View File
@@ -117,6 +117,14 @@ def run_navigationd(started: bool, params: Params, CP: car.CarParams, starpilot_
return started and params.get("NavDestination") is not None
def run_mapd(started: bool, params: Params, CP: car.CarParams, starpilot_toggles: SimpleNamespace) -> bool:
if started:
return True
memory_params = Params(memory=True)
return memory_params.get_bool("DownloadMaps") or memory_params.get_bool("CancelDownloadMaps")
def bluetooth_enabled(started: bool, params: Params, CP: car.CarParams, starpilot_toggles: SimpleNamespace) -> bool:
return params.get_bool("BluetoothEnabled")
@@ -216,7 +224,7 @@ else:
procs += [
PythonProcess("device_syncd", "starpilot.system.device_syncd", always_run),
PythonProcess("starpilot_process", "starpilot.starpilot_process", always_run),
PythonProcess("mapd", "starpilot.navigation.mapd_wrapper", always_run, nice=19),
PythonProcess("mapd", "starpilot.navigation.mapd_wrapper", run_mapd, nice=19),
PythonProcess("navigationd", "starpilot.navigation.navigationd", run_navigationd, nice=19),
PythonProcess("speed_limit_filler", "starpilot.system.speed_limit_filler", run_speed_limit_filler, nice=19),
PythonProcess("speed_limit_vision", "starpilot.system.speed_limit_vision", run_speed_limit_vision, nice=19),