This commit is contained in:
Your Name
2024-05-18 00:38:14 -05:00
parent 63d5492150
commit a47f7ab42d
2 changed files with 13 additions and 12 deletions

View File

@@ -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
-
- Removed all 'prime' functionality including map features

View File

@@ -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) {