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
9884f6db
Commit
9884f6db
authored
Sep 08, 2011
by
LM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on plot speed improvements
parent
e62dd21c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
PxQuadMAV.cc
src/uas/PxQuadMAV.cc
+0
-1
LinechartPlot.h
src/ui/linechart/LinechartPlot.h
+1
-1
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+3
-1
LinechartWidget.h
src/ui/linechart/LinechartWidget.h
+1
-1
No files found.
src/uas/PxQuadMAV.cc
View file @
9884f6db
...
...
@@ -56,7 +56,6 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
// FIXME Kind of a hack to load data from disk
mavlink_image_triggered_t
img
;
mavlink_msg_image_triggered_decode
(
&
message
,
&
img
);
qDebug
()
<<
"IMAGE AVAILABLE:"
<<
img
.
timestamp
;
emit
imageStarted
(
img
.
timestamp
);
}
break
;
...
...
src/ui/linechart/LinechartPlot.h
View file @
9884f6db
...
...
@@ -219,7 +219,7 @@ public:
static
const
int
SCALE_BEST_FIT
=
1
;
static
const
int
SCALE_LOGARITHMIC
=
2
;
static
const
int
DEFAULT_REFRESH_RATE
=
50
;
///< The default refresh rate is 25
Hz / every 100 ms
static
const
int
DEFAULT_REFRESH_RATE
=
100
;
///< The default refresh rate is 10
Hz / every 100 ms
static
const
int
DEFAULT_PLOT_INTERVAL
=
1000
*
8
;
///< The default plot interval is 15 seconds
static
const
int
DEFAULT_SCALE_INTERVAL
=
1000
*
8
;
...
...
src/ui/linechart/LinechartWidget.cc
View file @
9884f6db
...
...
@@ -142,7 +142,7 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
//connect(this, SIGNAL(plotWindowPositionUpdated(int)), scrollbar, SLOT(setValue(int)));
//connect(scrollbar, SIGNAL(sliderMoved(int)), this, SLOT(setPlotWindowPosition(int)));
updateTimer
->
setInterval
(
300
);
updateTimer
->
setInterval
(
updateInterval
);
connect
(
updateTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
refresh
()));
readSettings
();
}
...
...
@@ -376,6 +376,7 @@ void LinechartWidget::appendData(int uasId, const QString& curve, const QString&
void
LinechartWidget
::
refresh
()
{
setUpdatesEnabled
(
false
);
QString
str
;
// Value
QMap
<
QString
,
QLabel
*>::
iterator
i
;
...
...
@@ -427,6 +428,7 @@ void LinechartWidget::refresh()
str
.
sprintf
(
"% 8.3e"
,
activePlot
->
getVariance
(
l
.
key
()));
l
.
value
()
->
setText
(
str
);
}
setUpdatesEnabled
(
true
);
}
...
...
src/ui/linechart/LinechartWidget.h
View file @
9884f6db
...
...
@@ -150,7 +150,7 @@ protected:
QTimer
*
updateTimer
;
LogCompressor
*
compressor
;
QCheckBox
*
selectAllCheckBox
;
static
const
int
updateInterval
=
4
00
;
///< Time between number updates, in milliseconds
static
const
int
updateInterval
=
10
00
;
///< Time between number updates, in milliseconds
static
const
int
MAX_CURVE_MENUITEM_NUMBER
=
8
;
static
const
int
PAGESTEP_TIME_SCROLLBAR_VALUE
=
(
MAX_TIME_SCROLLBAR_VALUE
-
MIN_TIME_SCROLLBAR_VALUE
)
/
10
;
...
...
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