diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 11d588e797..19d3f736d2 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -1468,6 +1468,10 @@ void AnnotatedCameraWidget::drawFeatureStatusText(QPainter &p, int x, int y) { status_text.sprintf("GAC: %s\n", QString::number(uiState()->scene.gac_tr).toStdString().c_str()); p.drawText(x, y, status_text); + y += text_height; + status_text.sprintf("DLP: %s\n", QString::number(uiState()->scene.dynamic_lane_profile).toStdString().c_str()); + p.drawText(x, y, status_text); + y += text_height; status_text.sprintf("SLC: %s\n", QString::number(int(slcState)).toStdString().c_str()); p.drawText(x, y, status_text); diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index da68601cdf..1445a6b930 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -234,6 +234,8 @@ void ui_update_params(UIState *s) { auto params = Params(); s->scene.is_metric = params.getBool("IsMetric"); s->scene.map_on_left = params.getBool("NavSettingLeftSide"); + s->scene.dynamic_lane_profile_toggle = params.getBool("DynamicLaneProfileToggle"); + s->scene.dynamic_lane_profile = std::atoi(params.get("DynamicLaneProfile").c_str()); s->scene.visual_brake_lights = params.getBool("BrakeLights"); s->scene.onroadScreenOff = std::atoi(params.get("OnroadScreenOff").c_str()); s->scene.onroadScreenOffBrightness = std::atoi(params.get("OnroadScreenOffBrightness").c_str()); diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index a17e0286a7..01d9d1a127 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -179,7 +179,9 @@ typedef struct UIScene { bool started, ignition, is_metric, map_on_left, longitudinal_control; uint64_t started_frame; + int dynamic_lane_profile; bool dynamic_lane_profile_status = true; + bool dynamic_lane_profile_toggle; bool visual_brake_lights;