Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5682c232
Commit
5682c232
authored
May 17, 2017
by
Don Gagne
Committed by
GitHub
May 17, 2017
Browse files
Merge pull request #5173 from DonLakeFlyer/StopOneMocklink
Stop one MockLink at a time
parents
52c47fde
6341bf6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/QGroundControlQmlGlobal.cc
View file @
5682c232
...
...
@@ -137,7 +137,7 @@ void QGroundControlQmlGlobal::startAPMArduSubMockLink(bool sendStatusText)
#endif
}
void
QGroundControlQmlGlobal
::
stop
All
MockLink
s
(
void
)
void
QGroundControlQmlGlobal
::
stop
One
MockLink
(
void
)
{
#ifdef QT_DEBUG
LinkManager
*
linkManager
=
qgcApp
()
->
toolbox
()
->
linkManager
();
...
...
@@ -148,6 +148,7 @@ void QGroundControlQmlGlobal::stopAllMockLinks(void)
if
(
mockLink
)
{
linkManager
->
disconnectLink
(
mockLink
);
return
;
}
}
#endif
...
...
src/QmlControls/QGroundControlQmlGlobal.h
View file @
5682c232
...
...
@@ -92,7 +92,7 @@ public:
Q_INVOKABLE
void
startAPMArduCopterMockLink
(
bool
sendStatusText
);
Q_INVOKABLE
void
startAPMArduPlaneMockLink
(
bool
sendStatusText
);
Q_INVOKABLE
void
startAPMArduSubMockLink
(
bool
sendStatusText
);
Q_INVOKABLE
void
stop
All
MockLink
s
(
void
);
Q_INVOKABLE
void
stop
One
MockLink
(
void
);
/// Converts from meters to the user specified distance unit
Q_INVOKABLE
QVariant
metersToAppSettingsDistanceUnits
(
const
QVariant
&
meters
)
const
{
return
FactMetaData
::
metersToAppSettingsDistanceUnits
(
meters
);
}
...
...
src/ui/preferences/MockLink.qml
View file @
5682c232
...
...
@@ -61,8 +61,8 @@ Rectangle {
text
:
qsTr
(
"
Send status text + voice
"
)
}
QGCButton
{
text
:
qsTr
(
"
Stop
All
MockLink
s
"
)
onClicked
:
QGroundControl
.
stop
All
MockLink
s
()
text
:
qsTr
(
"
Stop
One
MockLink
"
)
onClicked
:
QGroundControl
.
stop
One
MockLink
()
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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