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-02-27 16:34:47 -07:00
parent ac00687b24
commit bf662b69ba
14 changed files with 893 additions and 7 deletions

View File

@@ -308,6 +308,7 @@ void ui_update_frogpilot_params(UIState *s) {
scene.fps_counter = custom_onroad_ui && params.getBool("FPSCounter");
scene.lead_info = custom_onroad_ui && params.getBool("LeadInfo");
scene.use_si = scene.lead_info && params.getBool("UseSI");
scene.road_name_ui = custom_onroad_ui && params.getBool("RoadNameUI");
bool custom_theme = params.getBool("CustomTheme");
scene.custom_colors = custom_theme ? params.getInt("CustomColors") : 0;