From a47f7ab42dfd2ab3df3459e5ba54c303c2e94fce Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 May 2024 00:38:14 -0500 Subject: [PATCH] wip --- .../clearpilot_feature_documentation.txt | 4 ++-- selfdrive/ui/qt/onroad.cc | 21 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/openpilot/clearpilot_feature_documentation.txt b/openpilot/clearpilot_feature_documentation.txt index d76df26..ea6d8e6 100755 --- a/openpilot/clearpilot_feature_documentation.txt +++ b/openpilot/clearpilot_feature_documentation.txt @@ -4,7 +4,7 @@ - Go straight to settings from drive - Show full screen splasn on offroad until tapped - Updated LFA icons on dashboard -- Removed a lot of icons from UI +- Removed nearly everything from onroad ui - Monitor never fully fatals - Engage / Disengage sounds silenced -- \ No newline at end of file +- Removed all 'prime' functionality including map features \ No newline at end of file diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 69d336d..cd35333 100755 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -451,6 +451,17 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { // Todo: lead speed // Todo: Experimental speed + // // current speed + if (!(scene.hide_speed)) { + // CLEARPILOT changes to 120 from ~176 + // Maybe we want to hide this? + p.setFont(InterFont(140, QFont::Bold)); + drawText(p, rect().center().x(), 210, speedStr); + // CLEARPILOT changes to 40 from 66 + p.setFont(InterFont(50)); + drawText(p, rect().center().x(), 290, speedUnit, 200); + } + // Draw FrogPilot widgets paintFrogPilotWidgets(p); } @@ -542,16 +553,6 @@ void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QSt p.setPen(colorSpeed); p.drawText(set_speed_rect.adjusted(0, 77, 0, 0), Qt::AlignTop | Qt::AlignHCenter, speedLimitStr); - // // current speed - if (!(scene.hide_speed)) { - // CLEARPILOT changes to 120 from ~176 - // Maybe we want to hide this? - p.setFont(InterFont(140, QFont::Bold)); - drawText(p, rect().center().x(), 210, speedStr); - // CLEARPILOT changes to 40 from 66 - p.setFont(InterFont(50)); - drawText(p, rect().center().x(), 290, speedUnit, 200); - } } void AnnotatedCameraWidget::drawText(QPainter &p, int x, int y, const QString &text, int alpha) {