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
a2c9eb95
Commit
a2c9eb95
authored
Mar 10, 2020
by
DoinLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
dfc74e8a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
1 deletion
+22
-1
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+9
-1
PlanView.SettingsGroup.json
src/Settings/PlanView.SettingsGroup.json
+6
-0
PlanViewSettings.cc
src/Settings/PlanViewSettings.cc
+1
-0
PlanViewSettings.h
src/Settings/PlanViewSettings.h
+1
-0
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+5
-0
No files found.
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
a2c9eb95
...
...
@@ -23,6 +23,8 @@
#include "RadioComponentController.h"
#include "QGCCameraManager.h"
#include "QGCFileDownload.h"
#include "SettingsManager.h"
#include "PlanViewSettings.h"
#include <QDebug>
...
...
@@ -279,7 +281,7 @@ void PX4FirmwarePlugin::getParameterMetaDataVersionInfo(const QString& metaDataF
QList
<
MAV_CMD
>
PX4FirmwarePlugin
::
supportedMissionCommands
(
void
)
{
return
{
QList
<
MAV_CMD
>
cmds
=
{
MAV_CMD_NAV_WAYPOINT
,
MAV_CMD_NAV_LOITER_UNLIM
,
MAV_CMD_NAV_LOITER_TIME
,
MAV_CMD_NAV_LOITER_TO_ALT
,
MAV_CMD_NAV_LAND
,
MAV_CMD_NAV_TAKEOFF
,
MAV_CMD_NAV_RETURN_TO_LAUNCH
,
...
...
@@ -298,6 +300,12 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
MAV_CMD_NAV_DELAY
,
MAV_CMD_CONDITION_YAW
,
};
if
(
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
planViewSettings
()
->
useConditionGate
()
->
rawValue
().
toBool
())
{
cmds
.
append
(
MAV_CMD_CONDITION_GATE
);
}
return
cmds
;
}
QString
PX4FirmwarePlugin
::
missionCommandOverrides
(
MAV_TYPE
vehicleType
)
const
...
...
src/Settings/PlanView.SettingsGroup.json
View file @
a2c9eb95
...
...
@@ -16,5 +16,11 @@
"shortDescription"
:
"Show/Hide the mission item status display"
,
"type"
:
"bool"
,
"defaultValue"
:
false
},
{
"name"
:
"useConditionGate"
,
"shortDescription"
:
"Use MAV_CMD_CONDITION_GATE for pattern generation"
,
"type"
:
"bool"
,
"defaultValue"
:
false
}
]
src/Settings/PlanViewSettings.cc
View file @
a2c9eb95
...
...
@@ -20,3 +20,4 @@ DECLARE_SETTINGGROUP(PlanView, "PlanView")
DECLARE_SETTINGSFACT
(
PlanViewSettings
,
displayPresetsTabFirst
)
DECLARE_SETTINGSFACT
(
PlanViewSettings
,
aboveTerrainWarning
)
DECLARE_SETTINGSFACT
(
PlanViewSettings
,
showMissionItemStatus
)
DECLARE_SETTINGSFACT
(
PlanViewSettings
,
useConditionGate
)
src/Settings/PlanViewSettings.h
View file @
a2c9eb95
...
...
@@ -23,4 +23,5 @@ public:
DEFINE_SETTINGFACT
(
displayPresetsTabFirst
)
DEFINE_SETTINGFACT
(
aboveTerrainWarning
)
DEFINE_SETTINGFACT
(
showMissionItemStatus
)
DEFINE_SETTINGFACT
(
useConditionGate
)
};
src/ui/preferences/GeneralSettings.qml
View file @
a2c9eb95
...
...
@@ -621,6 +621,11 @@ Rectangle {
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
defaultMissionItemAltitude
}
}
FactCheckBox
{
text
:
qsTr
(
"
Use MAV_CMD_CONDITION_GATE for pattern generation
"
)
fact
:
QGroundControl
.
settingsManager
.
planViewSettings
.
useConditionGate
}
}
}
...
...
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