Commit 936b56b9 authored by Lorenz Meier's avatar Lorenz Meier

Added last param / wp update time

parent 6b560420
......@@ -201,7 +201,9 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_
protocol_timer.stop();
emit readGlobalWPFromUAS(false);
emit updateStatusString("done.");
QTime time = QTime::currentTime();
QString timeString = time.toString();
emit updateStatusString(tr("done. (updated at %1)").arg(timeString));
}
} else {
......
......@@ -31,6 +31,7 @@ This file is part of the QGROUNDCONTROL project
#include <QFileDialog>
#include <QFile>
#include <QList>
#include <QTime>
#include <QSettings>
#include <QMessageBox>
#include <QApplication>
......@@ -444,7 +445,18 @@ void QGCParamWidget::addParameter(int uas, int component, int paramCount, int pa
}
QString val = QString("%1").arg(value.toFloat(), 5, 'f', 1, QChar(' '));
//statusLabel->setText(tr("OK: %1 %2 #%3/%4, %5 miss").arg(parameterName).arg(val).arg(paramId+1).arg(paramCount).arg(missCount));
statusLabel->setText(tr("OK: %1 %2 (%3/%4)").arg(parameterName).arg(val).arg(paramCount-missCount).arg(paramCount));
if (missCount == 0)
{
// Transmission done
QTime time = QTime::currentTime();
QString timeString = time.toString();
statusLabel->setText(tr("All received. (updated at %1)").arg(timeString));
}
else
{
// Transmission in progress
statusLabel->setText(tr("OK: %1 %2 (%3/%4)").arg(parameterName).arg(val).arg(paramCount-missCount).arg(paramCount));
}
}
// Check if last parameter was received
......
......@@ -134,7 +134,7 @@ void QGCToolBar::heartbeatTimeout(bool timeout, unsigned int ms)
{
toolBarTimeoutLabel->setStyleSheet(QString("QLabel { margin: 0px 2px; font: 14px; color: %1; background-color: %2; }").arg(QGC::colorDarkWhite.name()).arg(QGC::colorMagenta.dark(250).name()));
}
toolBarTimeoutLabel->setText(tr("CONNECTION LOST: %1 s").arg((ms / 1000.0f), 2, 'f', 1));
toolBarTimeoutLabel->setText(tr("CONNECTION LOST: %1 s").arg((ms / 1000.0f), 2, 'f', 1, ' '));
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment