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
f35f8d02
Commit
f35f8d02
authored
Feb 21, 2012
by
James Goppert
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol
parents
a4f73ca8
dfe1cbae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Pixhawk3DWidget.cc
src/ui/map3D/Pixhawk3DWidget.cc
+24
-0
Pixhawk3DWidget.h
src/ui/map3D/Pixhawk3DWidget.h
+1
-0
No files found.
src/ui/map3D/Pixhawk3DWidget.cc
View file @
f35f8d02
...
...
@@ -385,6 +385,24 @@ Pixhawk3DWidget::setpointChanged(int uasId, float x, float y, float z,
}
}
void
Pixhawk3DWidget
::
clearData
(
void
)
{
QMutableMapIterator
<
int
,
SystemContainer
>
it
(
mSystemContainerMap
);
while
(
it
.
hasNext
())
{
it
.
next
();
SystemContainer
&
systemData
=
it
.
value
();
// clear setpoint data
systemData
.
setpointGroupNode
()
->
removeChildren
(
0
,
systemData
.
setpointGroupNode
()
->
getNumChildren
());
// clear trail data
systemData
.
trailMap
().
clear
();
}
}
void
Pixhawk3DWidget
::
showViewParamWindow
(
void
)
{
...
...
@@ -1002,12 +1020,16 @@ Pixhawk3DWidget::addModels(QVector< osg::ref_ptr<osg::Node> >& models,
void
Pixhawk3DWidget
::
buildLayout
(
void
)
{
QPushButton
*
clearDataButton
=
new
QPushButton
(
this
);
clearDataButton
->
setText
(
"Clear Data"
);
QPushButton
*
viewParamWindowButton
=
new
QPushButton
(
this
);
viewParamWindowButton
->
setCheckable
(
true
);
viewParamWindowButton
->
setText
(
"View Parameters"
);
QHBoxLayout
*
layoutTop
=
new
QHBoxLayout
;
layoutTop
->
addItem
(
new
QSpacerItem
(
10
,
0
,
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
));
layoutTop
->
addWidget
(
clearDataButton
);
layoutTop
->
addWidget
(
viewParamWindowButton
);
QPushButton
*
recenterButton
=
new
QPushButton
(
this
);
...
...
@@ -1031,6 +1053,8 @@ Pixhawk3DWidget::buildLayout(void)
layout
->
setRowStretch
(
1
,
100
);
layout
->
setRowStretch
(
2
,
1
);
connect
(
clearDataButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
clearData
()));
connect
(
viewParamWindowButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
showViewParamWindow
()));
connect
(
recenterButton
,
SIGNAL
(
clicked
()),
...
...
src/ui/map3D/Pixhawk3DWidget.h
View file @
f35f8d02
...
...
@@ -66,6 +66,7 @@ signals:
void
systemCreatedSignal
(
UASInterface
*
uas
);
private
slots
:
void
clearData
(
void
);
void
showViewParamWindow
(
void
);
void
followCameraChanged
(
int
systemId
);
void
recenterActiveCamera
(
void
);
...
...
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