mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
nav: hide ETA on destination reached
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user