Commit 8e2a4f7a authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4762 from DonLakeFlyer/TelememtryLogNames

Telemetry logs: Log extension is .tlog, use numeric month in filename
parents 2b90f032 78b37c91
...@@ -506,8 +506,8 @@ void QGCApplication::saveTelemetryLogOnMainThread(QString tempLogfile) ...@@ -506,8 +506,8 @@ void QGCApplication::saveTelemetryLogOnMainThread(QString tempLogfile)
QString saveDirPath = _toolbox->settingsManager()->appSettings()->telemetrySavePath()->rawValue().toString(); QString saveDirPath = _toolbox->settingsManager()->appSettings()->telemetrySavePath()->rawValue().toString();
QDir saveDir(saveDirPath); QDir saveDir(saveDirPath);
QString nameFormat("%1%2.mavlink"); QString nameFormat("%1%2.tlog");
QString dtFormat("yyyy-MMM-dd hh-mm-ss"); QString dtFormat("yyyy-MM-dd hh-mm-ss");
int tryIndex = 1; int tryIndex = 1;
QString saveFileName = nameFormat.arg(QDateTime::currentDateTime().toString(dtFormat)).arg(""); QString saveFileName = nameFormat.arg(QDateTime::currentDateTime().toString(dtFormat)).arg("");
......
...@@ -202,7 +202,7 @@ bool LogReplayLink::_loadLogFile(void) ...@@ -202,7 +202,7 @@ bool LogReplayLink::_loadLogFile(void)
logFileInfo.setFile(logFilename); logFileInfo.setFile(logFilename);
_logFileSize = logFileInfo.size(); _logFileSize = logFileInfo.size();
_logTimestamped = logFilename.endsWith(".mavlink"); _logTimestamped = logFilename.endsWith(".tlog");
if (_logTimestamped) { if (_logTimestamped) {
// Get the first timestamp from the log // Get the first timestamp from the log
......
...@@ -73,7 +73,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void) ...@@ -73,7 +73,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void)
this, this,
tr("Load MAVLink Log File"), tr("Load MAVLink Log File"),
QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation),
tr("MAVLink Log Files (*.mavlink);;All Files (*)")); tr("MAVLink Log Files (*.tlog);;All Files (*)"));
if (logFilename.isEmpty()) { if (logFilename.isEmpty()) {
return; return;
......
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