Draw adjacent paths in onroad UI

Added toggle to draw the adjacent paths in the onroad UI to visualize what other lanes the model sees.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 44fc5c1f30
commit 0a675d40aa
8 changed files with 64 additions and 2 deletions

View File

@@ -291,6 +291,8 @@ void ui_update_frogpilot_params(UIState *s) {
bool custom_onroad_ui = params.getBool("CustomUI");
scene.acceleration_path = custom_onroad_ui && params.getBool("AccelerationPath");
scene.adjacent_path = custom_onroad_ui && params.getBool("AdjacentPath");
scene.adjacent_path_metrics = scene.adjacent_path && params.getBool("AdjacentPathMetrics");
scene.blind_spot_path = custom_onroad_ui && params.getBool("BlindSpotPath");
scene.lead_info = custom_onroad_ui && params.getBool("LeadInfo");
scene.use_si = scene.lead_info && params.getBool("UseSI");