wip
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
- Go straight to settings from drive
|
- Go straight to settings from drive
|
||||||
- Show full screen splasn on offroad until tapped
|
- Show full screen splasn on offroad until tapped
|
||||||
- Updated LFA icons on dashboard
|
- Updated LFA icons on dashboard
|
||||||
- Removed a lot of icons from UI
|
- Removed nearly everything from onroad ui
|
||||||
- Monitor never fully fatals
|
- Monitor never fully fatals
|
||||||
- Engage / Disengage sounds silenced
|
- Engage / Disengage sounds silenced
|
||||||
-
|
- Removed all 'prime' functionality including map features
|
||||||
@@ -451,6 +451,17 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
|
|||||||
// Todo: lead speed
|
// Todo: lead speed
|
||||||
// Todo: Experimental 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
|
// Draw FrogPilot widgets
|
||||||
paintFrogPilotWidgets(p);
|
paintFrogPilotWidgets(p);
|
||||||
}
|
}
|
||||||
@@ -542,16 +553,6 @@ void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QSt
|
|||||||
p.setPen(colorSpeed);
|
p.setPen(colorSpeed);
|
||||||
p.drawText(set_speed_rect.adjusted(0, 77, 0, 0), Qt::AlignTop | Qt::AlignHCenter, speedLimitStr);
|
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) {
|
void AnnotatedCameraWidget::drawText(QPainter &p, int x, int y, const QString &text, int alpha) {
|
||||||
|
|||||||
Reference in New Issue
Block a user