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
c9a863b7
Commit
c9a863b7
authored
Dec 16, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor bugfixes and compile fixes
parent
a7688a04
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
8 deletions
+38
-8
UASManager.cc
src/uas/UASManager.cc
+5
-0
UASManager.h
src/uas/UASManager.h
+2
-0
MainWindow.cc
src/ui/MainWindow.cc
+0
-4
ParameterInterface.cc
src/ui/ParameterInterface.cc
+9
-0
LinechartPlot.cc
src/ui/linechart/LinechartPlot.cc
+1
-1
Linecharts.cc
src/ui/linechart/Linecharts.cc
+13
-0
GCManipulator.cc
src/ui/map3D/GCManipulator.cc
+4
-3
QMap3D.cc
src/ui/map3D/QMap3D.cc
+4
-0
No files found.
src/uas/UASManager.cc
View file @
c9a863b7
...
...
@@ -85,6 +85,11 @@ void UASManager::addUAS(UASInterface* uas)
}
}
QList
<
UASInterface
*>
UASManager
::
getUASList
()
{
return
systems
.
values
();
}
UASInterface
*
UASManager
::
getActiveUAS
()
{
if
(
!
activeUAS
)
...
...
src/uas/UASManager.h
View file @
c9a863b7
...
...
@@ -69,6 +69,8 @@ public:
**/
UASInterface
*
getUASForId
(
int
id
);
QList
<
UASInterface
*>
getUASList
();
public
slots
:
...
...
src/ui/MainWindow.cc
View file @
c9a863b7
...
...
@@ -504,10 +504,6 @@ void MainWindow::connectPxWidgets()
{
if
(
linechartWidget
)
{
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
linechartWidget
,
SLOT
(
addSystem
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
int
)),
linechartWidget
,
SLOT
(
selectSystem
(
int
)));
connect
(
linechartWidget
,
SIGNAL
(
logfileWritten
(
QString
)),
this
,
SLOT
(
loadDataView
(
QString
)));
}
...
...
src/ui/ParameterInterface.cc
View file @
c9a863b7
...
...
@@ -51,6 +51,15 @@ ParameterInterface::ParameterInterface(QWidget *parent) :
// Setup UI connections
connect
(
m_ui
->
vehicleComboBox
,
SIGNAL
(
activated
(
int
)),
this
,
SLOT
(
selectUAS
(
int
)));
// Get current MAV list
QList
<
UASInterface
*>
systems
=
UASManager
::
instance
()
->
getUASList
();
// Add each of them
foreach
(
UASInterface
*
sys
,
systems
)
{
addUAS
(
sys
);
}
// Setup MAV connections
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
this
,
SLOT
(
addUAS
(
UASInterface
*
)));
this
->
setVisible
(
false
);
...
...
src/ui/linechart/LinechartPlot.cc
View file @
c9a863b7
...
...
@@ -56,7 +56,7 @@ maxInterval(MAX_STORAGE_INTERVAL),
timeScaleStep
(
DEFAULT_SCALE_INTERVAL
),
// 10 seconds
automaticScrollActive
(
false
),
m_active
(
true
),
m_groundTime
(
fals
e
),
m_groundTime
(
tru
e
),
d_data
(
NULL
),
d_curve
(
NULL
)
{
...
...
src/ui/linechart/Linecharts.cc
View file @
c9a863b7
#include "Linecharts.h"
#include "UASManager.h"
Linecharts
::
Linecharts
(
QWidget
*
parent
)
:
QStackedWidget
(
parent
),
...
...
@@ -6,6 +7,18 @@ Linecharts::Linecharts(QWidget *parent) :
active
(
true
)
{
this
->
setVisible
(
false
);
// Get current MAV list
QList
<
UASInterface
*>
systems
=
UASManager
::
instance
()
->
getUASList
();
// Add each of them
foreach
(
UASInterface
*
sys
,
systems
)
{
addSystem
(
sys
);
}
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
this
,
SLOT
(
addSystem
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
int
)),
this
,
SLOT
(
selectSystem
(
int
)));
}
...
...
src/ui/map3D/GCManipulator.cc
View file @
c9a863b7
...
...
@@ -30,6 +30,7 @@ This file is part of the QGROUNDCONTROL project
*/
#include "GCManipulator.h"
#include <osg/Version>
GCManipulator
::
GCManipulator
()
{
...
...
@@ -254,10 +255,10 @@ GCManipulator::calcMovement(void)
if
(
buttonMask
==
GUIEventAdapter
::
LEFT_MOUSE_BUTTON
)
{
// rotate camera
#ifdef __WIN32__
osg
::
Vec3
axis
;
#else
#if ((OPENSCENEGRAPH_MAJOR_VERSION == 2) & (OPENSCENEGRAPH_MINOR_VERSION > 8)) | (OPENSCENEGRAPH_MAJOR_VERSION > 2)
osg
::
Vec3d
axis
;
#else
osg
::
Vec3
axis
;
#endif
float
angle
;
...
...
src/ui/map3D/QMap3D.cc
View file @
c9a863b7
...
...
@@ -39,7 +39,11 @@ QMap3D::QMap3D(QWidget * parent, const char * name, WindowFlags f) :
QWidget
(
parent
,
f
)
{
setupUi
(
this
);
#if ((OPENSCENEGRAPH_MAJOR_VERSION == 2) & (OPENSCENEGRAPH_MINOR_VERSION > 8)) | (OPENSCENEGRAPH_MAJOR_VERSION > 2)
graphicsView
->
setCameraManipulator
(
new
osgEarth
::
Util
::
EarthManipulator
);
#else
graphicsView
->
setCameraManipulator
(
new
osgEarthUtil
::
EarthManipulator
);
#endif
graphicsView
->
setSceneData
(
new
osg
::
Group
);
graphicsView
->
updateCamera
();
show
();
...
...
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