From 35a5aae334e2409c432499a868fae69bd6ceb285 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 9 Jul 2021 11:28:53 +0200 Subject: [PATCH] nav: hide ETA on destination reached --- selfdrive/ui/qt/maps/map.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index b43d84cb3a..fbee2d666d 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -716,6 +716,11 @@ MapETA::MapETA(QWidget * parent) : QWidget(parent) { void MapETA::updateETA(float s, float s_typical, float d) { + if (d < MANEUVER_TRANSITION_THRESHOLD) { + hide(); + return; + } + // ETA auto eta_time = QDateTime::currentDateTime().addSecs(s).time(); if (params.getBool("NavSettingTime24h")) {