wip
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user