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
d70464d8
Commit
d70464d8
authored
Jun 06, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1647 from mavlink/hil_fixes
Hil fixes
parents
87326b17
c6bf0de6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
8 deletions
+26
-8
AutoPilotPluginManager.cc
src/AutoPilotPlugins/AutoPilotPluginManager.cc
+1
-1
QGCXPlaneLink.cc
src/comm/QGCXPlaneLink.cc
+8
-7
UASManager.cc
src/uas/UASManager.cc
+1
-0
UASManagerInterface.h
src/uas/UASManagerInterface.h
+2
-0
MainWindow.cc
src/ui/MainWindow.cc
+9
-0
MainWindow.h
src/ui/MainWindow.h
+3
-0
QGCHilConfiguration.cc
src/ui/QGCHilConfiguration.cc
+2
-0
No files found.
src/AutoPilotPlugins/AutoPilotPluginManager.cc
View file @
d70464d8
...
...
@@ -40,7 +40,7 @@ AutoPilotPluginManager::AutoPilotPluginManager(QObject* parent) :
// We need to track uas coming and going so that we can instantiate plugins for each uas
connect
(
uasMgr
,
&
UASManagerInterface
::
UASCreated
,
this
,
&
AutoPilotPluginManager
::
_uasCreated
);
connect
(
uasMgr
,
&
UASManagerInterface
::
UASDeleted
,
this
,
&
AutoPilotPluginManager
::
_uasDeleted
);
connect
(
uasMgr
,
SIGNAL
(
UASDeleted
(
UASInterface
*
)),
this
,
SLOT
(
_uasDeleted
(
UASInterface
*
))
);
}
AutoPilotPluginManager
::~
AutoPilotPluginManager
()
...
...
src/comm/QGCXPlaneLink.cc
View file @
d70464d8
...
...
@@ -237,15 +237,16 @@ void QGCXPlaneLink::run()
QGC
::
SLEEP
::
msleep
(
5
);
}
if
(
mav
)
uas
=
dynamic_cast
<
UAS
*>
(
mav
);
if
(
uas
)
{
disconnect
(
mav
,
SIGNAL
(
hilControlsChanged
(
quint64
,
float
,
float
,
float
,
float
,
quint8
,
quint8
)),
this
,
SLOT
(
updateControls
(
quint64
,
float
,
float
,
float
,
float
,
quint8
,
quint8
)));
disconnect
(
mav
,
SIGNAL
(
hilActuatorsChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
this
,
SLOT
(
updateActuators
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
uas
,
SIGNAL
(
hilControlsChanged
(
quint64
,
float
,
float
,
float
,
float
,
quint8
,
quint8
)),
this
,
SLOT
(
updateControls
(
quint64
,
float
,
float
,
float
,
float
,
quint8
,
quint8
)));
disconnect
(
uas
,
SIGNAL
(
hilActuatorsChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
this
,
SLOT
(
updateActuators
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
this
,
SIGNAL
(
hilGroundTruthChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
mav
,
SLOT
(
sendHilGroundTruth
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
this
,
SIGNAL
(
hilStateChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
mav
,
SLOT
(
sendHilState
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
this
,
SIGNAL
(
sensorHilGpsChanged
(
quint64
,
double
,
double
,
double
,
int
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
int
)),
mav
,
SLOT
(
sendHilGps
(
quint64
,
double
,
double
,
double
,
int
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
int
)));
disconnect
(
this
,
SIGNAL
(
sensorHilRawImuChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
quint32
)),
mav
,
SLOT
(
sendHilSensors
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
quint32
)));
disconnect
(
this
,
SIGNAL
(
hilGroundTruthChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
uas
,
SLOT
(
sendHilGroundTruth
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
this
,
SIGNAL
(
hilStateChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)),
uas
,
SLOT
(
sendHilState
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
double
,
double
,
double
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
)));
disconnect
(
this
,
SIGNAL
(
sensorHilGpsChanged
(
quint64
,
double
,
double
,
double
,
int
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
int
)),
uas
,
SLOT
(
sendHilGps
(
quint64
,
double
,
double
,
double
,
int
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
int
)));
disconnect
(
this
,
SIGNAL
(
sensorHilRawImuChanged
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
quint32
)),
uas
,
SLOT
(
sendHilSensors
(
quint64
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
,
quint32
)));
// Do not toggle HIL state on the UAS - this is not the job of this link, but of the
// UAS object
...
...
src/uas/UASManager.cc
View file @
d70464d8
...
...
@@ -340,6 +340,7 @@ void UASManager::removeUAS(UASInterface* uas)
// Notify other UI elements that a UAS is being deleted before finally deleting it.
qDebug
()
<<
"Deleting UAS object: "
<<
uas
->
getUASName
();
emit
UASDeleted
(
uas
);
emit
UASDeleted
(
uas
->
getUASID
());
uas
->
deleteLater
();
}
}
...
...
src/uas/UASManagerInterface.h
View file @
d70464d8
...
...
@@ -98,6 +98,8 @@ signals:
void
UASCreated
(
UASInterface
*
UAS
);
/** A system was deleted */
void
UASDeleted
(
UASInterface
*
UAS
);
/** A system was deleted */
void
UASDeleted
(
int
systemId
);
/** @brief The UAS currently under main operator control changed */
void
activeUASSet
(
UASInterface
*
UAS
);
/** @brief The UAS currently under main operator control changed */
...
...
src/ui/MainWindow.cc
View file @
d70464d8
...
...
@@ -796,6 +796,7 @@ void MainWindow::connectCommonActions()
// Connect internal actions
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
this
,
SLOT
(
UASCreated
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASDeleted
(
int
)),
this
,
SLOT
(
UASDeleted
(
int
)));
// Unmanned System controls
connect
(
_ui
.
actionLiftoff
,
SIGNAL
(
triggered
()),
UASManager
::
instance
(),
SLOT
(
launchActiveUAS
()));
...
...
@@ -909,6 +910,14 @@ void MainWindow::UASCreated(UASInterface* uas)
}
}
void
MainWindow
::
UASDeleted
(
int
uasId
)
{
if
(
_mapUasId2HilDockWidget
.
contains
(
uasId
))
{
_mapUasId2HilDockWidget
[
uasId
]
->
deleteLater
();
_mapUasId2HilDockWidget
.
remove
(
uasId
);
}
}
/// Stores the state of the toolbar, status bar and widgets associated with the current view
void
MainWindow
::
_storeCurrentViewState
(
void
)
{
...
...
src/ui/MainWindow.h
View file @
d70464d8
...
...
@@ -146,6 +146,9 @@ public slots:
/** @brief Add a new UAS */
void
UASCreated
(
UASInterface
*
uas
);
/** @brief Remove an old UAS */
void
UASDeleted
(
int
uasID
);
void
handleMisconfiguration
(
UASInterface
*
uas
);
/** @brief Load configuration views */
void
loadSetupView
();
...
...
src/ui/QGCHilConfiguration.cc
View file @
d70464d8
...
...
@@ -29,6 +29,8 @@ QGCHilConfiguration::QGCHilConfiguration(UAS *mav, QWidget *parent) :
}
settings
.
endGroup
();
connect
(
mav
,
SIGNAL
(
destroyed
()),
this
,
SLOT
(
deleteLater
()));
}
void
QGCHilConfiguration
::
receiveStatusMessage
(
const
QString
&
message
)
...
...
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