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
5078267f
Commit
5078267f
authored
May 11, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the timestamps currently, should work now with IMU and UNIX timestamps
parent
8556a2a2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
95 deletions
+73
-95
UAS.cc
src/uas/UAS.cc
+65
-94
UAS.h
src/uas/UAS.h
+4
-0
LinechartPlot.h
src/ui/linechart/LinechartPlot.h
+4
-1
No files found.
src/uas/UAS.cc
View file @
5078267f
This diff is collapsed.
Click to expand it.
src/uas/UAS.h
View file @
5078267f
...
...
@@ -214,6 +214,10 @@ signals:
void
loadChanged
(
UASInterface
*
uas
,
double
load
);
/** @brief Propagate a heartbeat received from the system */
void
heartbeat
(
UASInterface
*
uas
);
protected:
/** @brief Get the UNIX timestamp in microseconds */
quint64
getUnixTime
(
quint64
time
);
};
...
...
src/ui/linechart/LinechartPlot.h
View file @
5078267f
...
...
@@ -53,9 +53,12 @@ class TimeScaleDraw: public QwtScaleDraw
{
public:
virtual
QwtText
label
(
double
v
)
const
{
virtual
QwtText
label
(
double
v
)
const
{
QDateTime
time
=
MG
::
TIME
::
msecToQDateTime
(
static_cast
<
quint64
>
(
v
));
return
time
.
toString
(
"hh:mm:ss"
);
// was hh:mm:ss:zzz
// Show seconds since system startup
//return QString::number(static_cast<int>(v)/1000000);
}
};
...
...
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