From 6212b174e90e6fc2c2ee145fe5a3eda46e685f36 Mon Sep 17 00:00:00 2001 From: royjr Date: Wed, 8 Oct 2025 21:12:08 -0400 Subject: [PATCH] descs --- .../qt/offroad/settings/visuals_panel.cc | 47 ++++++++++++++++--- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc index d5b953302b..3030ede907 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc @@ -145,7 +145,15 @@ VisualsPanel::VisualsPanel(QWidget *parent) : QWidget(parent) { // Visual Style std::vector visual_style_settings_texts{tr("Default"), tr("Minimal"), tr("Vision")}; visual_style_settings = new ButtonParamControlSP( - "VisualStyle", tr("Visual Style"), tr("todo"), + "VisualStyle", tr("Visual Style"), + tr( + "Switch between different on-road visualization layouts." + "" + ), "", visual_style_settings_texts, 380); @@ -154,7 +162,15 @@ VisualsPanel::VisualsPanel(QWidget *parent) : QWidget(parent) { // Visual Style Zoom std::vector visual_style_zoom_settings_texts{tr("Disabled"), tr("Enabled"), tr("Inverted")}; visual_style_zoom_settings = new ButtonParamControlSP( - "VisualStyleZoom", tr("Visual Style Zoom"), tr("todo"), + "VisualStyleZoom", tr("Visual Style Zoom"), + tr( + "Enables dynamic zooming based on driving speed in the selected visual style." + "
    " + "
  • Disabled: Keeps the zoom fixed.
  • " + "
  • Enabled: Zooms in at low speed and out at high speed.
  • " + "
  • Inverted: Reverses the zoom behavior.
  • " + "
" + ), "", visual_style_zoom_settings_texts, 380); @@ -163,7 +179,15 @@ VisualsPanel::VisualsPanel(QWidget *parent) : QWidget(parent) { // Visual Style Overhead std::vector visual_style_overhead_settings_texts{tr("Disabled"), tr("Enabled"), tr("Inverted")}; visual_style_overhead_settings = new ButtonParamControlSP( - "VisualStyleOverhead", tr("Visual Style Overhead"), tr("todo"), + "VisualStyleOverhead", tr("Visual Style Overhead"), + tr( + "Toggles an overhead (top-down) camera view for a 2D-style perspective." + "
    " + "
  • Disabled: Keeps the standard forward 3D view.
  • " + "
  • Enabled: Switches to overhead view when active.
  • " + "
  • Inverted: Reverses when the transition happens.
  • " + "
" + ), "", visual_style_overhead_settings_texts, 380); @@ -172,16 +196,25 @@ VisualsPanel::VisualsPanel(QWidget *parent) : QWidget(parent) { // Visual Style Overhead Zoom std::vector visual_style_overhead_zoom_settings_texts{tr("Disabled"), tr("Enabled"), tr("Inverted")}; visual_style_overhead_zoom_settings = new ButtonParamControlSP( - "VisualStyleOverheadZoom", tr("Visual Style Overhead Zoom"), tr("todo"), + "VisualStyleOverheadZoom", tr("Visual Style Overhead Zoom"), + tr( + "Controls zooming behavior while in overhead mode." + "
    " + "
  • Disabled: Keeps a fixed zoom level in overhead mode.
  • " + "
  • Enabled: Zooms dynamically based on speed while overhead.
  • " + "
  • Inverted: Opposite zoom direction.
  • " + "
" + ), "", visual_style_overhead_zoom_settings_texts, 380); list->addItem(visual_style_overhead_zoom_settings); // Visual Style Overhead Threshold - visual_style_overhead_threshold_settings = new OptionControlSP("VisualStyleOverheadThreshold", tr("Visual Style Overhead Threshold"), - tr("todo"), - "", {10, 80}, 5, false, nullptr, false); + visual_style_overhead_threshold_settings = new OptionControlSP( + "VisualStyleOverheadThreshold", tr("Visual Style Overhead Threshold"), + tr("Sets the speed (in mph) where the display transitions between normal and overhead view."), + "", {10, 80}, 5, false, nullptr, false); connect(visual_style_overhead_threshold_settings, &OptionControlSP::updateLabels, [=]() { int value = QString::fromStdString(params.get("VisualStyleOverheadThreshold")).toInt();