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
b5d40d3c
Commit
b5d40d3c
authored
Nov 30, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
8394fda9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
APMFirmwarePlugin.cc
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
+6
-2
App.SettingsGroup.json
src/Settings/App.SettingsGroup.json
+6
-0
AppSettings.cc
src/Settings/AppSettings.cc
+1
-0
AppSettings.h
src/Settings/AppSettings.h
+3
-0
MavlinkSettings.qml
src/ui/preferences/MavlinkSettings.qml
+8
-4
No files found.
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
View file @
b5d40d3c
...
...
@@ -17,6 +17,8 @@
#include "MissionManager.h"
#include "ParameterManager.h"
#include "QGCFileDownload.h"
#include "SettingsManager.h"
#include "AppSettings.h"
#include <QTcpSocket>
...
...
@@ -641,8 +643,10 @@ void APMFirmwarePlugin::initializeVehicle(Vehicle* vehicle)
break
;
}
}
else
{
// Streams are not started automatically on APM stack
initializeStreamRates
(
vehicle
);
if
(
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
apmStartMavlinkStreams
()
->
rawValue
().
toBool
())
{
// Streams are not started automatically on APM stack (sort of)
initializeStreamRates
(
vehicle
);
}
}
}
...
...
src/Settings/App.SettingsGroup.json
View file @
b5d40d3c
...
...
@@ -199,5 +199,11 @@
"enumStrings"
:
"Never,Always,When in Follow Me Flight Mode"
,
"enumValues"
:
"0,1,2"
,
"defaultValue"
:
0
},
{
"name"
:
"apmStartMavlinkStreams"
,
"shortDescription"
:
"Request start of MAVLink telemetry streams (ArduPilot only)"
,
"type"
:
"bool"
,
"defaultValue"
:
true
}
]
src/Settings/AppSettings.cc
View file @
b5d40d3c
...
...
@@ -84,6 +84,7 @@ DECLARE_SETTINGSFACT(AppSettings, esriToken)
DECLARE_SETTINGSFACT
(
AppSettings
,
defaultFirmwareType
)
DECLARE_SETTINGSFACT
(
AppSettings
,
gstDebugLevel
)
DECLARE_SETTINGSFACT
(
AppSettings
,
followTarget
)
DECLARE_SETTINGSFACT
(
AppSettings
,
apmStartMavlinkStreams
)
DECLARE_SETTINGSFACT_NO_FUNC
(
AppSettings
,
indoorPalette
)
{
...
...
src/Settings/AppSettings.h
View file @
b5d40d3c
...
...
@@ -44,6 +44,9 @@ public:
DEFINE_SETTINGFACT
(
gstDebugLevel
)
DEFINE_SETTINGFACT
(
followTarget
)
// Although this is a global setting it only affects ArduPilot vehicle since PX4 automatically starts the stream from the vehicle side
DEFINE_SETTINGFACT
(
apmStartMavlinkStreams
)
Q_PROPERTY
(
QString
missionSavePath
READ
missionSavePath
NOTIFY
savePathsChanged
)
Q_PROPERTY
(
QString
parameterSavePath
READ
parameterSavePath
NOTIFY
savePathsChanged
)
Q_PROPERTY
(
QString
telemetrySavePath
READ
telemetrySavePath
NOTIFY
savePathsChanged
)
...
...
src/ui/preferences/MavlinkSettings.qml
View file @
b5d40d3c
...
...
@@ -15,6 +15,7 @@ import QtQuick.Dialogs 1.2
import
QGroundControl
1.0
import
QGroundControl
.
FactSystem
1.0
import
QGroundControl
.
FactControls
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
MultiVehicleManager
1.0
...
...
@@ -132,8 +133,7 @@ Rectangle {
}
}
}
//-----------------------------------------------------------------
//-- Mavlink Heartbeats
QGCCheckBox
{
text
:
qsTr
(
"
Emit heartbeat
"
)
checked
:
QGroundControl
.
multiVehicleManager
.
gcsHeartBeatEnabled
...
...
@@ -141,8 +141,12 @@ Rectangle {
QGroundControl
.
multiVehicleManager
.
gcsHeartBeatEnabled
=
checked
}
}
//-----------------------------------------------------------------
//-- Mavlink Version Check
FactCheckBox
{
text
:
fact
.
shortDescription
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
apmStartMavlinkStreams
}
QGCCheckBox
{
text
:
qsTr
(
"
Only accept MAVs with same protocol version
"
)
checked
:
QGroundControl
.
isVersionCheckEnabled
...
...
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