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
5682c232
Commit
5682c232
authored
May 17, 2017
by
Don Gagne
Committed by
GitHub
May 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
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
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
QGroundControlQmlGlobal.cc
src/QmlControls/QGroundControlQmlGlobal.cc
+2
-1
QGroundControlQmlGlobal.h
src/QmlControls/QGroundControlQmlGlobal.h
+1
-1
MockLink.qml
src/ui/preferences/MockLink.qml
+2
-2
No files found.
src/QmlControls/QGroundControlQmlGlobal.cc
View file @
5682c232
...
...
@@ -137,7 +137,7 @@ void QGroundControlQmlGlobal::startAPMArduSubMockLink(bool sendStatusText)
#endif
}
void
QGroundControlQmlGlobal
::
stop
AllMockLinks
(
void
)
void
QGroundControlQmlGlobal
::
stop
OneMockLink
(
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
AllMockLinks
(
void
);
Q_INVOKABLE
void
stop
OneMockLink
(
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 MockLinks
"
)
onClicked
:
QGroundControl
.
stop
AllMockLinks
()
text
:
qsTr
(
"
Stop
One MockLink
"
)
onClicked
:
QGroundControl
.
stop
OneMockLink
()
}
}
}
...
...
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