From 78b37c9192253842d217a55176e4eb529c34cc76 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Mon, 13 Mar 2017 16:00:46 -0700 Subject: [PATCH] Log extension is .tlog, use number month in filename --- src/QGCApplication.cc | 4 ++-- src/comm/LogReplayLink.cc | 2 +- src/ui/QGCMAVLinkLogPlayer.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 9a1431a5a..9a55c6643 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -506,8 +506,8 @@ void QGCApplication::saveTelemetryLogOnMainThread(QString tempLogfile) QString saveDirPath = _toolbox->settingsManager()->appSettings()->telemetrySavePath()->rawValue().toString(); QDir saveDir(saveDirPath); - QString nameFormat("%1%2.mavlink"); - QString dtFormat("yyyy-MMM-dd hh-mm-ss"); + QString nameFormat("%1%2.tlog"); + QString dtFormat("yyyy-MM-dd hh-mm-ss"); int tryIndex = 1; QString saveFileName = nameFormat.arg(QDateTime::currentDateTime().toString(dtFormat)).arg(""); diff --git a/src/comm/LogReplayLink.cc b/src/comm/LogReplayLink.cc index d6b818467..1fc8e73e1 100644 --- a/src/comm/LogReplayLink.cc +++ b/src/comm/LogReplayLink.cc @@ -202,7 +202,7 @@ bool LogReplayLink::_loadLogFile(void) logFileInfo.setFile(logFilename); _logFileSize = logFileInfo.size(); - _logTimestamped = logFilename.endsWith(".mavlink"); + _logTimestamped = logFilename.endsWith(".tlog"); if (_logTimestamped) { // Get the first timestamp from the log diff --git a/src/ui/QGCMAVLinkLogPlayer.cc b/src/ui/QGCMAVLinkLogPlayer.cc index 55f26ec58..e7da45413 100644 --- a/src/ui/QGCMAVLinkLogPlayer.cc +++ b/src/ui/QGCMAVLinkLogPlayer.cc @@ -73,7 +73,7 @@ void QGCMAVLinkLogPlayer::_selectLogFileForPlayback(void) this, tr("Load MAVLink Log File"), QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation), - tr("MAVLink Log Files (*.mavlink);;All Files (*)")); + tr("MAVLink Log Files (*.tlog);;All Files (*)")); if (logFilename.isEmpty()) { return; -- 2.22.0