1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1351 display thermal calibration estimated duration in instruction text box

This commit is contained in:
Philippe Renon 2014-06-01 17:21:03 +02:00
parent b13e5548c1
commit e434fc6db9

View File

@ -399,7 +399,12 @@ void ThermalCalibrationHelper::updateTemp(float temp)
} else if ((m_gradient > .1) && ((m_initialGradient / 2.0f) > m_gradient)) {
// make a rough estimation of the time needed
m_targetduration = elapsed * 8;
setProgressMax(100);
QTime t = QTime(0, 0).addSecs(m_targetduration);
addInstructions(tr("Estimated duration: %1").arg(t.toString("m' minute(s) and 's' second(s).'")));
QString str = QStringLiteral("INFO::Trace gradient : %1, elapsed : %2 initial gradient : %3, target : %4")
.arg(m_gradient).arg(elapsed).arg(m_initialGradient).arg(m_targetduration);
qDebug() << str;