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
6a1344a4
Unverified
Commit
6a1344a4
authored
Dec 11, 2019
by
Don Gagne
Committed by
GitHub
Dec 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8102 from DonLakeFlyer/VTOLIndicator
Toolbar indicators: Change order, Change VTOL indicator
parents
a5a99be2
961eac7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+1
-1
VTOLModeIndicator.qml
src/ui/toolbar/VTOLModeIndicator.qml
+18
-10
No files found.
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
6a1344a4
...
...
@@ -329,9 +329,9 @@ const QVariantList &FirmwarePlugin::toolBarIndicators(const Vehicle* vehicle)
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/RCRSSIIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/BatteryIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/GPSRTKIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ArmedIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ModeIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/VTOLModeIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/ArmedIndicator.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/MultiVehicleSelector.qml"
)),
QVariant
::
fromValue
(
QUrl
::
fromUserInput
(
"qrc:/toolbar/LinkIndicator.qml"
)),
});
...
...
src/ui/toolbar/VTOLModeIndicator.qml
View file @
6a1344a4
...
...
@@ -19,21 +19,29 @@ import QGroundControl.Palette 1.0
//-------------------------------------------------------------------------
//-- VTOL Mode Indicator
QGC
Label
{
QGC
ComboBox
{
anchors.verticalCenter
:
parent
.
verticalCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
_fwdFlight
?
qsTr
(
"
VTOL: Fixed Wing
"
)
:
qsTr
(
"
VTOL: Multi-Rotor
"
)
alternateText
:
_fwdFlight
?
qsTr
(
"
VTOL: FW
"
)
:
qsTr
(
"
VTOL: MR
"
)
model
:
[
qsTr
(
"
VTOL: Multi-Rotor
"
),
qsTr
(
"
VTOL: Fixed Wing
"
)
]
font.pointSize
:
ScreenTools
.
mediumFontPointSize
c
olor
:
qgcPal
.
buttonText
width
:
implicitWidth
c
urrentIndex
:
-
1
sizeToContents
:
true
property
bool
showIndicator
:
_activeVehicle
.
vtol
&&
_activeVehicle
.
px4Firmware
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_fwdFlight
:
_activeVehicle
.
vtolInFwdFlight
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_fwdFlight
:
_activeVehicle
.
vtolInFwdFlight
QGCMouseArea
{
fillItem
:
parent
onClicked
:
activeVehicle
.
vtolInFwdFlight
?
toolBar
.
vtolTransitionToMRFlight
()
:
toolBar
.
vtolTransitionToFwdFlight
()
onActivated
:
{
if
(
index
==
0
)
{
if
(
_fwdFlight
)
{
mainWindow
.
vtolTransitionToMRFlight
()
}
}
else
{
if
(
!
_fwdFlight
)
{
mainWindow
.
vtolTransitionToFwdFlight
()
}
}
currentIndex
=
-
1
}
}
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