Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
27f2a93b
Commit
27f2a93b
authored
Apr 26, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #84 from Susurrus/datalogger_refactoring
Datalogger refactoring
parents
33b2346e
6ba5787c
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
195 additions
and
344 deletions
+195
-344
LogCompressor.cc
src/LogCompressor.cc
+177
-328
LogCompressor.h
src/LogCompressor.h
+15
-13
Linechart.ui
src/ui/Linechart.ui
+1
-1
MAVLinkDecoder.cc
src/ui/MAVLinkDecoder.cc
+2
-2
No files found.
src/LogCompressor.cc
View file @
27f2a93b
This diff is collapsed.
Click to expand it.
src/LogCompressor.h
View file @
27f2a93b
...
...
@@ -8,28 +8,30 @@ class LogCompressor : public QThread
Q_OBJECT
public:
/** @brief Create the log compressor. It will only get active upon calling startCompression() */
LogCompressor
(
QString
logFileName
,
QString
outFileName
=
""
,
int
uasid
=
0
);
LogCompressor
(
QString
logFileName
,
QString
outFileName
=
""
,
QString
delimiter
=
"
\t
"
);
/** @brief Start the compression of a raw, line-based logfile into a CSV file */
void
startCompression
(
bool
holeFilling
=
false
);
bool
isFinished
();
int
getDataLines
();
int
getCurrentLine
();
protected:
void
run
();
QString
logFileName
;
QString
outFileName
;
bool
running
;
int
currentDataLine
;
int
dataLines
;
int
uasid
;
void
run
();
///< This function actually performs the compression. It's an overloaded function from QThread
QString
logFileName
;
///< The input file name.
QString
outFileName
;
///< The output file name. If blank defaults to logFileName
bool
running
;
///< True when the startCompression() function is operating.
int
currentDataLine
;
///< The current line of data that is being processed. Only relevant when running==true
QString
delimiter
;
///< Delimiter between fields in the output file. Defaults to tab ('\t')
bool
holeFillingEnabled
;
///< Enables the filling of holes in the dataset with the previous value (or NaN if none exists)
signals:
/** @brief This signal is emitted when there is a change in the status of the parsing algorithm. For instance if an error is encountered.
* @param status A status message
*/
void
logProcessingStatusChanged
(
QString
status
);
/** @brief This signal is emitted once a logfile has been finished writing
* @param fileName The name o
ut
the output (CSV) file
* @param fileName The name o
f
the output (CSV) file
*/
void
logProcessingStatusChanged
(
QString
);
void
finishedFile
(
QString
fileName
);
};
...
...
src/ui/Linechart.ui
View file @
27f2a93b
...
...
@@ -145,7 +145,7 @@
<string>
Display only variable names in curve list
</string>
</property>
<property
name=
"text"
>
<string>
Short
N
ames
</string>
<string>
Short
n
ames
</string>
</property>
</widget>
</item>
...
...
src/ui/MAVLinkDecoder.cc
View file @
27f2a93b
...
...
@@ -12,10 +12,10 @@ MAVLinkDecoder::MAVLinkDecoder(MAVLinkProtocol* protocol, QObject *parent) :
componentID
[
i
]
=
-
1
;
componentMulti
[
i
]
=
false
;
onboardTimeOffset
[
i
]
=
0
;
onboardToGCSUnixTimeOffsetAndDelay
[
i
]
=
0
;
firstOnboardTime
[
i
]
=
0
;
}
// Fill filter
messageFilter
.
insert
(
MAVLINK_MSG_ID_HEARTBEAT
,
false
);
messageFilter
.
insert
(
MAVLINK_MSG_ID_SYS_STATUS
,
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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