Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8e2a4f7a
Commit
8e2a4f7a
authored
Mar 14, 2017
by
Don Gagne
Committed by
GitHub
Mar 14, 2017
Browse files
Merge pull request #4762 from DonLakeFlyer/TelememtryLogNames
Telemetry logs: Log extension is .tlog, use numeric month in filename
parents
2b90f032
78b37c91
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
8e2a4f7a
...
...
@@ -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-MM
M
-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
(
""
);
...
...
src/comm/LogReplayLink.cc
View file @
8e2a4f7a
...
...
@@ -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
...
...
src/ui/QGCMAVLinkLogPlayer.cc
View file @
8e2a4f7a
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment