From 51561d3393ab30028187c61ab3b901410a112aa2 Mon Sep 17 00:00:00 2001 From: concordia Date: Sat, 15 Jun 2024 20:30:56 -0500 Subject: [PATCH] wip --- selfdrive/ui/qt/onroad.cc | 2 +- system/qcomgpsd/qcomgpsd.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 2499db8..7609346 100755 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -481,7 +481,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { // } // } -void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor colorSpeed, int width = 176) { +void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor colorSpeed, int width) { // Draw outer box + border to contain set speed and speed limit const int sign_margin = 12; const int us_sign_height = 186; diff --git a/system/qcomgpsd/qcomgpsd.py b/system/qcomgpsd/qcomgpsd.py index e64b0ce..6235497 100755 --- a/system/qcomgpsd/qcomgpsd.py +++ b/system/qcomgpsd/qcomgpsd.py @@ -387,6 +387,7 @@ def main() -> NoReturn: else: if time_since_last_report >= 30 and distance_change >= MIN_DISTANCE_CHANGE: should_report = True + # Execute reporting if conditions are met if should_report: last_reported_time = current_time