4import QGroundControl.Controls
7 anchors.margins: -ScreenTools.defaultFontPixelHeight
8 height: warningsCol.height
9 width: warningsCol.width
10 color: Qt.rgba(1, 1, 1, 0.5)
11 radius: ScreenTools.defaultFontPixelWidth / 2
12 visible: _noGPSLockVisible || _prearmErrorVisible
14 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
15 property bool _noGPSLockVisible: _activeVehicle && _activeVehicle.requiresGpsFix && !_activeVehicle.coordinate.isValid
16 property bool _prearmErrorVisible: _activeVehicle && !_activeVehicle.armed && _activeVehicle.prearmError && !_activeVehicle.healthAndArmingCheckReport.supported
20 spacing: ScreenTools.defaultFontPixelHeight
23 anchors.horizontalCenter: parent.horizontalCenter
24 visible: _noGPSLockVisible
26 font.pointSize: ScreenTools.largeFontPointSize
27 text: qsTr("No GPS Lock for Vehicle")
31 anchors.horizontalCenter: parent.horizontalCenter
32 visible: _prearmErrorVisible
34 font.pointSize: ScreenTools.largeFontPointSize
35 text: _activeVehicle ? _activeVehicle.prearmError : ""
39 anchors.horizontalCenter: parent.horizontalCenter
40 visible: _prearmErrorVisible
41 width: ScreenTools.defaultFontPixelWidth * 50
42 horizontalAlignment: Text.AlignHCenter
43 wrapMode: Text.WordWrap
45 font.pointSize: ScreenTools.largeFontPointSize
46 text: qsTr("The vehicle has failed a pre-arm check. In order to arm the vehicle, resolve the failure.")