Open Street Maps integration

Added OSM to openpilot to use speed limits and road names.

Credit goes to Pfeiferj!

https: //github.com/pfeiferj
Co-Authored-By: Jacob Pfeifer <jacob@pfeifer.dev>
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 672a0e05e2
commit 88dad9d306
12 changed files with 888 additions and 6 deletions

View File

@@ -55,6 +55,9 @@ def enable_dm(started, params, CP: car.CarParams) -> bool:
def enable_logging(started, params, CP: car.CarParams) -> bool:
return not (params.get_bool("FireTheBabysitter") and params.get_bool("NoLogging"))
def osm(started, params, CP: car.CarParams) -> bool:
return params.get_bool("RoadNameUI")
procs = [
DaemonProcess("manage_athenad", "selfdrive.athena.manage_athenad", "AthenadPid"),
@@ -103,6 +106,7 @@ procs = [
# FrogPilot processes
PythonProcess("fleet_manager", "selfdrive.frogpilot.fleetmanager.fleet_manager", always_run),
PythonProcess("mapd", "selfdrive.frogpilot.functions.mapd", osm),
]
managed_processes = {p.name: p for p in procs}