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
20458c5b
Commit
20458c5b
authored
Jun 11, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use alternate instruments for small screen
parent
ec1271c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+1
-1
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+16
-14
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
20458c5b
...
...
@@ -223,7 +223,7 @@ QGCView {
//-- Virtual Joystick
Loader
{
id
:
multiTouchItem
id
:
virtualJoystickMultiTouch
z
:
_panel
.
z
+
5
width
:
parent
.
width
-
(
_flightVideoPipControl
.
width
/
2
)
height
:
Math
.
min
(
ScreenTools
.
availableHeight
*
0.25
,
ScreenTools
.
defaultFontPixelWidth
*
16
)
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
20458c5b
...
...
@@ -27,9 +27,11 @@ Item {
property
alias
guidedModeBar
:
_guidedModeBar
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_isSatellite
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
property
bool
_lightWidgetBorders
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
bool
_isSatellite
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
property
bool
_lightWidgetBorders
:
_mainIsMap
?
(
_flightMap
?
_flightMap
.
isSatelliteMap
:
true
)
:
true
property
bool
_useAlternateInstruments
:
QGroundControl
.
virtualTabletJoystick
||
ScreenTools
.
isTinyScreen
readonly
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
...
...
@@ -94,7 +96,7 @@ Item {
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.right
:
altitudeSlider
.
visible
?
altitudeSlider
.
left
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
!
QGroundControl
.
virtualTabletJoystick
visible
:
!
_useAlternateInstruments
size
:
getGadgetWidth
()
active
:
_activeVehicle
!=
null
heading
:
_heading
...
...
@@ -113,8 +115,8 @@ Item {
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.top
:
parent
.
top
anchors.right
:
altitudeSlider
.
visible
?
altitudeSlider
.
left
:
parent
.
right
visible
:
QGroundControl
.
virtualTabletJoystick
width
:
ScreenTools
.
isTinyScreen
?
getGadgetWidth
()
*
2
:
getGadgetWidth
()
visible
:
_useAlternateInstruments
width
:
ScreenTools
.
isTinyScreen
?
getGadgetWidth
()
*
1.5
:
getGadgetWidth
()
active
:
_activeVehicle
!=
null
heading
:
_heading
rollAngle
:
_roll
...
...
@@ -126,14 +128,14 @@ Item {
}
ValuesWidget
{
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
anchors.top
:
instrumentGadgetAlternate
.
bottom
anchors.
left
:
instrumentGadgetAlternate
.
left
width
:
getGadgetWidth
()
qgcView
:
parent
.
parent
.
qgcView
textColor
:
_isSatellite
?
"
white
"
:
"
black
"
visible
:
QGroundControl
.
virtualTabletJoystick
maxHeight
:
multiTouchItem
.
y
-
y
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
anchors.top
:
instrumentGadgetAlternate
.
bottom
anchors.
horizontalCenter
:
instrumentGadgetAlternate
.
horizontalCenter
width
:
getGadgetWidth
()
qgcView
:
parent
.
parent
.
qgcView
textColor
:
_isSatellite
?
"
white
"
:
"
black
"
visible
:
_useAlternateInstruments
maxHeight
:
virtualJoystickMultiTouch
.
visible
?
virtualJoystickMultiTouch
.
y
-
y
:
parent
.
height
-
anchors
.
margins
-
y
}
//-- Vertical Tool Buttons
...
...
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