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
|
// Draw outer box + border to contain set speed and speed limit
|
||||||
const int sign_margin = 12;
|
const int sign_margin = 12;
|
||||||
const int us_sign_height = 186;
|
const int us_sign_height = 186;
|
||||||
|
|||||||
@@ -387,6 +387,7 @@ def main() -> NoReturn:
|
|||||||
else:
|
else:
|
||||||
if time_since_last_report >= 30 and distance_change >= MIN_DISTANCE_CHANGE:
|
if time_since_last_report >= 30 and distance_change >= MIN_DISTANCE_CHANGE:
|
||||||
should_report = True
|
should_report = True
|
||||||
|
|
||||||
# Execute reporting if conditions are met
|
# Execute reporting if conditions are met
|
||||||
if should_report:
|
if should_report:
|
||||||
last_reported_time = current_time
|
last_reported_time = current_time
|
||||||
|
|||||||
Reference in New Issue
Block a user