|
|
@ -92,7 +92,7 @@ Item { |
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
visible: _isInstrumentVisible |
|
|
|
visible: _isInstrumentVisible && !QGroundControl.virtualTabletJoystick |
|
|
|
size: getGadgetWidth() |
|
|
|
size: getGadgetWidth() |
|
|
|
active: _activeVehicle != null |
|
|
|
active: _activeVehicle != null |
|
|
|
heading: _heading |
|
|
|
heading: _heading |
|
|
@ -109,6 +109,65 @@ Item { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-- Alternate Instrument Panel |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
visible: QGroundControl.virtualTabletJoystick |
|
|
|
|
|
|
|
anchors.margins: ScreenTools.defaultFontPixelHeight |
|
|
|
|
|
|
|
anchors.right: parent.right |
|
|
|
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
|
|
|
width: _pipSize |
|
|
|
|
|
|
|
height: _pipSize * (9/16) |
|
|
|
|
|
|
|
color: Qt.rgba(0,0,0,0.75) |
|
|
|
|
|
|
|
Column { |
|
|
|
|
|
|
|
id: instruments |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
spacing: ScreenTools.defaultFontPixelSize * 0.33 |
|
|
|
|
|
|
|
Item { |
|
|
|
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 0.33 |
|
|
|
|
|
|
|
width: 1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
text: "Altitude (m)" |
|
|
|
|
|
|
|
font.pixelSize: ScreenTools.defaultFontPixelSize * 0.75 |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
height: ScreenTools.defaultFontPixelSize * 0.75 |
|
|
|
|
|
|
|
color: "white" |
|
|
|
|
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
text: _altitudeWGS84 < 10000 ? _altitudeWGS84.toFixed(1) : _altitudeWGS84.toFixed(0) |
|
|
|
|
|
|
|
font.pixelSize: ScreenTools.defaultFontPixelSize * 2.5 |
|
|
|
|
|
|
|
font.weight: Font.DemiBold |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
color: "white" |
|
|
|
|
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//-- Ground Speed |
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
height: 1 |
|
|
|
|
|
|
|
width: parent.width * 0.9 |
|
|
|
|
|
|
|
color: Qt.rgba(1,1,1,0.25) |
|
|
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
text: "Ground Speed (km/h)" |
|
|
|
|
|
|
|
font.pixelSize: ScreenTools.defaultFontPixelSize * 0.75 |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
height: ScreenTools.defaultFontPixelSize * 0.75 |
|
|
|
|
|
|
|
color: "white" |
|
|
|
|
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
|
|
|
text: (_groundSpeed * 3.6).toFixed(1) |
|
|
|
|
|
|
|
font.pixelSize: ScreenTools.defaultFontPixelSize * 1.5 |
|
|
|
|
|
|
|
font.weight: Font.DemiBold |
|
|
|
|
|
|
|
width: parent.width |
|
|
|
|
|
|
|
color: "white" |
|
|
|
|
|
|
|
horizontalAlignment: TextEdit.AlignHCenter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//-- Show (Hidden) Instrument Panel |
|
|
|
//-- Show (Hidden) Instrument Panel |
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
id: openButton |
|
|
|
id: openButton |
|
|
@ -118,7 +177,7 @@ Item { |
|
|
|
height: ScreenTools.defaultFontPixelSize * 2 |
|
|
|
height: ScreenTools.defaultFontPixelSize * 2 |
|
|
|
width: ScreenTools.defaultFontPixelSize * 2 |
|
|
|
width: ScreenTools.defaultFontPixelSize * 2 |
|
|
|
radius: ScreenTools.defaultFontPixelSize / 3 |
|
|
|
radius: ScreenTools.defaultFontPixelSize / 3 |
|
|
|
visible: !_isInstrumentVisible |
|
|
|
visible: !_isInstrumentVisible && !QGroundControl.virtualTabletJoystick |
|
|
|
color: isBackgroundDark ? Qt.rgba(0,0,0,0.75) : Qt.rgba(0,0,0,0.5) |
|
|
|
color: isBackgroundDark ? Qt.rgba(0,0,0,0.75) : Qt.rgba(0,0,0,0.5) |
|
|
|
Image { |
|
|
|
Image { |
|
|
|
width: parent.width * 0.75 |
|
|
|
width: parent.width * 0.75 |
|
|
|