Commit 78b37c91 authored by DonLakeFlyer's avatar DonLakeFlyer

Log extension is .tlog, use number month in filename

parent 59c8eaa3
......@@ -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("");
......
......@@ -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
......
......@@ -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;
......
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