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
9226dcae
Commit
9226dcae
authored
Apr 07, 2017
by
Don Gagne
Committed by
GitHub
Apr 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4933 from DonLakeFlyer/ToolStripFixes
Tool strip fixes
parents
fe8e61e5
844e6780
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
PX4FirmwarePlugin.cc
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
+1
-0
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+1
-1
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+4
-10
No files found.
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
9226dcae
...
...
@@ -170,6 +170,7 @@ QString PX4FirmwarePlugin::flightMode(uint8_t base_mode, uint32_t custom_mode) c
if
(
!
found
)
{
qWarning
()
<<
"Unknown flight mode"
<<
custom_mode
;
return
tr
(
"Unknown %1:%2"
).
arg
(
base_mode
).
arg
(
custom_mode
);
}
}
else
{
qWarning
()
<<
"PX4 Flight Stack flight mode without custom mode enabled?"
;
...
...
src/FlightDisplay/FlightDisplayView.qml
View file @
9226dcae
...
...
@@ -348,7 +348,7 @@ QGCView {
z
:
_panel
.
z
+
4
title
:
qsTr
(
"
Fly
"
)
maxHeight
:
(
_flightVideo
.
visible
?
_flightVideo
.
y
:
parent
.
height
)
-
toolStrip
.
y
buttonVisible
:
[
guidedController
.
showTakeoff
||
!
guidedController
.
showLand
,
guidedController
.
showLand
,
true
,
true
,
true
,
guidedController
.
smartShotsAvailable
]
buttonVisible
:
[
guidedController
.
showTakeoff
||
!
guidedController
.
showLand
,
guidedController
.
showLand
&&
!
guidedController
.
showTakeoff
,
true
,
true
,
true
,
guidedController
.
smartShotsAvailable
]
buttonEnabled
:
[
guidedController
.
showTakeoff
,
guidedController
.
showLand
,
guidedController
.
showRTL
,
guidedController
.
showPause
,
_anyActionAvailable
,
_anySmartShotAvailable
]
property
bool
_anyActionAvailable
:
guidedController
.
showEmergenyStop
||
guidedController
.
showStartMission
||
guidedController
.
showResumeMission
||
guidedController
.
showChangeAlt
||
guidedController
.
showLandAbort
...
...
src/QmlControls/ToolStrip.qml
View file @
9226dcae
...
...
@@ -39,7 +39,7 @@ Rectangle {
// whether to show or hide the optional elements on the fly.
property
bool
_showOptionalElements
:
true
property
bool
_needRecalc
:
tru
e
property
bool
_needRecalc
:
fals
e
Component.onCompleted
:
recalcShowOptionalElements
()
...
...
@@ -54,7 +54,6 @@ Rectangle {
onDefaultFontPixelHeightChanged
:
recalcShowOptionalElements
()
}
/*
onHeightChanged
:
{
if
(
_needRecalc
)
{
_needRecalc
=
false
...
...
@@ -63,18 +62,13 @@ Rectangle {
}
}
}
*/
function
recalcShowOptionalElements
()
{
if
(
_showOptionalElements
)
{
if
(
maxHeight
&&
height
>
maxHeight
)
{
_showOptionalElements
=
false
}
}
else
{
if
(
maxHeight
>
0
)
{
_needRecalc
=
false
_showOptionalElements
=
height
<=
maxHeight
_needRecalc
=
true
_showOptionalElements
=
true
}
}
QGCPalette
{
id
:
qgcPal
}
...
...
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