Speed limit controller

Added toggle to control the cruise set speed according to speed limit supplied by OSM, NOO, or the vehicle itself.

Co-Authored-By: Jacob Pfeifer <jacob@pfeifer.dev>
Co-Authored-By: Efini <19368997+efini@users.noreply.github.com>
Co-Authored-By: Kumar <36933347+rav4kumar@users.noreply.github.com>
Co-Authored-By: Jason Wen <haibin.wen3@gmail.com>
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 6907410750
commit 3a926ddfbe
23 changed files with 703 additions and 29 deletions

View File

@@ -52,7 +52,7 @@ def allow_logging(started, params, params_memory, CP: car.CarParams) -> bool:
return allow_logging and logging(started, params, params_memory, CP)
def osm(started, params, params_memory, CP: car.CarParams) -> bool:
return params_memory.get_bool("RoadNameUI")
return params_memory.get_bool("RoadNameUI") or params_memory.get_bool("SpeedLimitController")
procs = [
DaemonProcess("manage_athenad", "selfdrive.athena.manage_athenad", "AthenadPid"),