diff --git a/selfdrive/ui/qt/onroad/annotated_camera.cc b/selfdrive/ui/qt/onroad/annotated_camera.cc index a1364da52..ef93f54e4 100644 --- a/selfdrive/ui/qt/onroad/annotated_camera.cc +++ b/selfdrive/ui/qt/onroad/annotated_camera.cc @@ -276,7 +276,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { // paint path QLinearGradient bg(0, height(), 0, 0); - if (experimentalMode) { + if (experimentalMode || scene.acceleration_path) { // The first half of track_vertices are the points for the right side of the path // and the indices match the positions of accel from uiPlan const auto &acceleration = sm["uiPlan"].getUiPlan().getAccel(); diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index fb41cf948..ee379bc15 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -299,6 +299,8 @@ void ui_update_frogpilot_params(UIState *s, Params ¶ms) { scene.show_cem_status_bar = scene.conditional_experimental && !params.getBool("HideCEMStatusBar"); bool custom_onroad_ui = params.getBool("CustomUI"); + bool custom_paths = custom_onroad_ui && params.getBool("CustomPaths"); + scene.acceleration_path = custom_paths && params.getBool("AccelerationPath"); scene.compass = custom_onroad_ui && params.getBool("Compass"); scene.disable_smoothing_mtsc = params.getBool("MTSCEnabled") && params.getBool("DisableMTSCSmoothing"); diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index 2f6203426..a34677b3b 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -122,6 +122,7 @@ typedef struct UIScene { uint64_t started_frame; // FrogPilot variables + bool acceleration_path; bool always_on_lateral_active; bool compass; bool conditional_experimental;