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
40716011
Commit
40716011
authored
Jan 05, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up
parent
7fdec584
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
46 deletions
+23
-46
LinechartPlot.cc
src/ui/linechart/LinechartPlot.cc
+23
-46
No files found.
src/ui/linechart/LinechartPlot.cc
View file @
40716011
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
(c) 2009, 2010 PIXHAWK PROJECT <http://pixhawk.ethz.ch>
This file is part of the PIXHAWK project
PIXHAWK is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PIXHAWK is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with PIXHAWK. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
/**
...
...
@@ -260,16 +241,12 @@ void LinechartPlot::appendData(QString dataname, quint64 ms, double value)
if
(
m_groundTime
)
{
// Use the current (receive) time
//dataset->append(MG::TIME::getGroundTimeNow(), value);
time
=
QGC
::
groundTimeUsecs
()
/
1000
;
//qDebug() << "QGC:" << QGC::groundTimeUsecs()/1000;
}
else
{
// Use timestamp from dataset
time
=
ms
;
//qDebug() << "MS:" << ms;
//qDebug() << "QGC:" << QGC::groundTimeUsecs()/1000;
}
dataset
->
append
(
time
,
value
);
...
...
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