Commit fb0c9f26 authored by Tomaz Canabrava's avatar Tomaz Canabrava

Localize the PX4 QML Files

all calls to qsTr are done, if I didn't forget anything,
on the PX4 QML files.
Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 9ac9b3aa
......@@ -67,7 +67,7 @@ QGCView {
Component.onCompleted: {
if (controller.showCustomConfigPanel) {
showDialog(customConfigDialogComponent, "Custom Airframe Config", qgcView.showDialogDefaultWidth, StandardButton.Reset)
showDialog(customConfigDialogComponent, qsTr("Custom Airframe Config"), qgcView.showDialogDefaultWidth, StandardButton.Reset)
}
}
}
......@@ -77,9 +77,9 @@ QGCView {
QGCViewMessage {
id: customConfigDialog
message: "Your vehicle is using a custom airframe configuration. " +
"This configuration can only be modified through the Parameter Editor.\n\n" +
"If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above."
message: qsTr("Your vehicle is using a custom airframe configuration. ") +
qsTr("This configuration can only be modified through the Parameter Editor.\n\n") +
qsTr("If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above.")
property Fact sys_autostart: controller.getParameterFact(-1, "SYS_AUTOSTART")
......@@ -104,8 +104,8 @@ QGCView {
QGCLabel {
anchors.fill: parent
wrapMode: Text.WordWrap
text: "Clicking “Apply” will save the changes you have made to your airframe configuration. " +
"Your vehicle will also be restarted in order to complete the process."
text: qsTr("Clicking “Apply” will save the changes you have made to your airframe configuration. ") +
qsTr("Your vehicle will also be restarted in order to complete the process.")
}
}
}
......@@ -127,9 +127,9 @@ QGCView {
id: helpText
width: parent.width - applyButton.width - 5
text: (controller.currentVehicleName != "" ?
"You've connected a " + controller.currentVehicleName :
"Airframe is not set") +
". To change this configuration, select the desired airframe below then click “Apply and Restart”."
qsTr("You've connected a %1.").arg(controller.currentVehicleName) :
qsTr("Airframe is not set.")) +
qsTr("To change this configuration, select the desired airframe below then click “Apply and Restart”.")
font.weight: Font.DemiBold
wrapMode: Text.WordWrap
}
......@@ -137,9 +137,9 @@ QGCView {
QGCButton {
id: applyButton
anchors.right: parent.right
text: "Apply and Restart"
text: qsTr("Apply and Restart")
onClicked: showDialog(applyRestartDialogComponent, "Apply and Restart", qgcView.showDialogDefaultWidth, StandardButton.Apply | StandardButton.Cancel)
onClicked: showDialog(applyRestartDialogComponent, qsTr("Apply and Restart"), qgcView.showDialogDefaultWidth, StandardButton.Apply | StandardButton.Cancel)
}
}
......
......@@ -25,18 +25,18 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "System ID:"
labelText: qsTr("System ID:")
valueText: sysIdFact ? sysIdFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Airframe type:"
valueText: autoStartSet ? controller.currentAirframeType : "Setup required"
labelText: qsTr("Airframe type:")
valueText: autoStartSet ? controller.currentAirframeType : qsTr("Setup required")
}
VehicleSummaryRow {
labelText: "Vehicle:"
valueText: autoStartSet ? controller.currentVehicleName : "Setup required"
labelText: qsTr("Vehicle:")
valueText: autoStartSet ? controller.currentVehicleName : qsTr("Setup required")
}
}
}
......@@ -33,15 +33,15 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Mode switch:"
valueText: _rcMapFltmode.value === 0 ? "Setup required" : _rcMapFltmode.enumStringValue
labelText: qsTr("Mode switch:")
valueText: _rcMapFltmode.value === 0 ? qsTr("Setup required") : _rcMapFltmode.enumStringValue
}
Repeater {
model: 6
VehicleSummaryRow {
labelText: "Flight Mode " + (index + 1) + ":"
labelText: qsTr("Flight Mode %1 :").arg(index + 1)
valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue
}
}
......@@ -59,23 +59,23 @@ FactPanel {
property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW")
VehicleSummaryRow {
labelText: "Mode switch:"
valueText: _rcMapModeSw.value === 0 ? "Setup required" : _rcMapModeSw.valueString
labelText: qsTr("Mode switch:")
valueText: _rcMapModeSw.value === 0 ? qsTr("Setup required") : _rcMapModeSw.valueString
}
VehicleSummaryRow {
labelText: "Position Ctl switch:"
valueText: posCtlSwFact.value === 0 ? "Disabled" : posCtlSwFact.valueString
labelText: qsTr("Position Ctl switch:")
valueText: posCtlSwFact.value === 0 ? qsTr("Disabled") : posCtlSwFact.valueString
}
VehicleSummaryRow {
labelText: "Loiter switch:"
valueText: loiterSwFact.value === 0 ? "Disabled" : loiterSwFact.valueString
labelText: qsTr("Loiter switch:")
valueText: loiterSwFact.value === 0 ? qsTr("Disabled") : loiterSwFact.valueString
}
VehicleSummaryRow {
labelText: "Return switch:"
valueText: returnSwFact.value === 0 ? "Disabled" : returnSwFact.valueString
labelText: qsTr("Return switch:")
valueText: returnSwFact.value === 0 ? qsTr("Disabled") : returnSwFact.valueString
}
}
}
......
......@@ -27,38 +27,38 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Roll:"
valueText: mapRollFact ? (mapRollFact.value === 0 ? "Setup required" : mapRollFact.valueString) : ""
labelText: qsTr("Roll:")
valueText: mapRollFact ? (mapRollFact.value === 0 ? qsTr("Setup required") : mapRollFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Pitch:"
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? "Setup required" : mapPitchFact.valueString) : ""
labelText: qsTr("Pitch:")
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? qsTr("Setup required") : mapPitchFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Yaw:"
valueText: mapYawFact ? (mapYawFact.value === 0 ? "Setup required" : mapYawFact.valueString) : ""
labelText: qsTr("Yaw:")
valueText: mapYawFact ? (mapYawFact.value === 0 ? qsTr("Setup required") : mapYawFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Throttle:"
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? "Setup required" : mapThrottleFact.valueString) : ""
labelText: qsTr("Throttle:")
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? qsTr("Setup required") : mapThrottleFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Flaps:"
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? "Disabled" : mapFlapsFact.valueString) : ""
labelText: qsTr("Flaps:")
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? qsTr("Disabled") : mapFlapsFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Aux1:"
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? "Disabled" : mapAux1Fact.valueString) : ""
labelText: qsTr("Aux1:")
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? qsTr("Disabled") : mapAux1Fact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Aux2:"
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? "Disabled" : mapAux2Fact.valueString) : ""
labelText: qsTr("Aux2:")
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? qsTr("Disabled") : mapAux2Fact.valueString) : ""
}
}
}
......@@ -70,7 +70,7 @@ Item {
QGCLabel {
id: flightModeLabel
text: "Flight Mode Settings"
text: qsTr("Flight Mode Settings")
font.weight: Font.DemiBold
}
......@@ -93,7 +93,7 @@ Item {
QGCLabel {
id: modeChannelLabel
anchors.baseline: modeChannelCombo.baseline
text: "Flight mode channel:"
text: qsTr("Flight mode channel:")
}
FactComboBox {
......@@ -114,7 +114,7 @@ Item {
QGCLabel {
anchors.baseline: modeCombo.baseline
text: "Flight Mode " + index + ":"
text: qsTr("Flight Mode %1:)").arg(index)
color: controller.activeFlightMode == index ? "yellow" : qgcPal.text
}
......@@ -134,7 +134,7 @@ Item {
spacing: _margins
QGCLabel {
text: "Switch Settings"
text: qsTr("Switch Settings")
font.weight: Font.DemiBold
}
......
......@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel {
ListElement {
title: "Throttle Hover"
description: "Adjust throttle so hover is at mid-throttle. Slide to the left if hover is lower than throttle center. Slide to the right if hover is higher than throttle center."
title: qsTr("Throttle Hover")
description: qsTr("Adjust throttle so hover is at mid-throttle. Slide to the left if hover is lower than throttle center. Slide to the right if hover is higher than throttle center.")
param: "MPC_THR_HOVER"
min: 0.2
max: 0.8
......@@ -41,8 +41,8 @@ FactSliderPanel {
}
ListElement {
title: "Roll sensitivity"
description: "Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy."
title: qsTr("Roll sensitivity")
description: qsTr("Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "MC_ROLL_TC"
min: 0.15
max: 0.25
......@@ -50,8 +50,8 @@ FactSliderPanel {
}
ListElement {
title: "Pitch sensitivity"
description: "Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy."
title: qsTr("Pitch sensitivity")
description: qsTr("Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "MC_PITCH_TC"
min: 0.15
max: 0.25
......@@ -59,8 +59,8 @@ FactSliderPanel {
}
ListElement {
title: "Altitude control sensitivity"
description: "Slide to the left to make altitude control smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive."
title: qsTr("Altitude control sensitivity")
description: qsTr("Slide to the left to make altitude control smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive.")
param: "MPC_Z_FF"
min: 0
max: 1.0
......@@ -68,8 +68,8 @@ FactSliderPanel {
}
ListElement {
title: "Position control sensitivity"
description: "Slide to the left to make flight in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive."
title: qsTr("Position control sensitivity")
description: qsTr("Slide to the left to make flight in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive.")
param: "MPC_XY_FF"
min: 0
max: 1.0
......@@ -77,13 +77,12 @@ FactSliderPanel {
}
ListElement {
title: "Manual minimum throttle"
description: "Slide to the left to start the motors with less idle power. Slide to the right if descending in manual flight becomes unstable."
title: qsTr("Manual minimum throttle")
description: qsTr("Slide to the left to start the motors with less idle power. Slide to the right if descending in manual flight becomes unstable.")
param: "MPC_MANTHR_MIN"
min: 0
max: 0.15
step: 0.01
}
}
}
......@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel {
ListElement {
title: "Hover Roll sensitivity"
description: "Slide to the left to make roll control during hover faster and more accurate. Slide to the right if roll oscillates or is too twitchy."
title: qsTr("Hover Roll sensitivity")
description: qsTr("Slide to the left to make roll control during hover faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "MC_ROLL_TC"
min: 0.15
max: 0.25
......@@ -41,8 +41,8 @@ FactSliderPanel {
}
ListElement {
title: "Hover Pitch sensitivity"
description: "Slide to the left to make pitch control during hover faster and more accurate. Slide to the right if pitch oscillates or is too twitchy."
title: qsTr("Hover Pitch sensitivity")
description: qsTr("Slide to the left to make pitch control during hover faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "MC_PITCH_TC"
min: 0.15
max: 0.25
......@@ -50,8 +50,8 @@ FactSliderPanel {
}
ListElement {
title: "Hover Altitude control sensitivity"
description: "Slide to the left to make altitude control during hover smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive."
title: qsTr("Hover Altitude control sensitivity")
description: qsTr("Slide to the left to make altitude control during hover smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive.")
param: "MPC_Z_FF"
min: 0
max: 1.0
......@@ -59,16 +59,16 @@ FactSliderPanel {
}
ListElement {
title: "Hover Position control sensitivity"
description: "Slide to the left to make flight during hover in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive."
title: qsTr("Hover Position control sensitivity")
description: qsTr("Slide to the left to make flight during hover in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive.")
param: "MPC_XY_FF"
min: 0
max: 1.0
step: 0.1
}
ListElement {
title: "Plane Roll sensitivity"
description: "Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy."
title: qsTr("Plane Roll sensitivity")
description: qsTr("Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "FW_R_TC"
min: 0.2
max: 0.8
......@@ -76,8 +76,8 @@ FactSliderPanel {
}
ListElement {
title: "Plane Pitch sensitivity"
description: "Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy."
title: qsTr("Plane Pitch sensitivity")
description: qsTr("Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "FW_P_TC"
min: 0.2
max: 0.8
......@@ -85,8 +85,8 @@ FactSliderPanel {
}
ListElement {
title: "Plane Cruise throttle"
description: "This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%."
title: qsTr("Plane Cruise throttle")
description: qsTr("This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%.")
param: "FW_THR_CRUISE"
min: 0.2
max: 0.8
......@@ -94,8 +94,8 @@ FactSliderPanel {
}
ListElement {
title: "Plane Mission mode sensitivity"
description: "Slide to the left to make position control more accurate and more aggressive. Slide to the right to make flight in mission mode smoother and less twitchy."
title: qsTr("Plane Mission mode sensitivity")
description: qsTr("Slide to the left to make position control more accurate and more aggressive. Slide to the right to make flight in mission mode smoother and less twitchy.")
param: "FW_L1_PERIOD"
min: 12
max: 50
......
This diff is collapsed.
......@@ -50,17 +50,17 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Battery Full:"
labelText: qsTr("Battery Full:")
valueText: batVChargedFact ? batVChargedFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Battery Empty:"
labelText: qsTr("Battery Empty:")
valueText: batVEmptyFact ? batVEmptyFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Number of Cells:"
labelText: qsTr("Number of Cells:")
valueText: batCellsFact ? batCellsFact.valueString : ""
}
}
......
......@@ -63,7 +63,7 @@ QGCView {
QGCLabel {
id: triggerLabel
text: "Triggers For Return Home"
text: qsTr("Triggers For Return Home")
font.weight: Font.DemiBold
}
......@@ -78,7 +78,7 @@ QGCView {
color: palette.windowShade
QGCLabel {
text: "RC Transmitter Signal Loss: Return Home after"
text: qsTr("RC Transmitter Signal Loss: Return Home after")
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: rcLossField.baseline
......@@ -101,7 +101,7 @@ QGCView {
fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN")
checkedValue: 1
uncheckedValue: 0
text: "Telemetry Signal Timeout: Return Home after"
text: qsTr("Telemetry Signal Timeout: Return Home after")
}
FactTextField {
......@@ -121,7 +121,7 @@ QGCView {
anchors.leftMargin: _margins
anchors.left: triggerSettings.right
anchors.top: parent.top
text: "GeoFence"
text: qsTr("GeoFence")
font.weight: Font.DemiBold
}
......@@ -139,7 +139,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: fenceActionCombo.baseline
text: "Action on breach:"
text: qsTr("Action on breach:")
}
FactComboBox {
......@@ -148,7 +148,7 @@ QGCView {
anchors.left: fenceActionLabel.right
anchors.top: parent.top
width: fenceAltMaxField.width
model: [ "None", "Warning", "Loiter", "Return Home", "Flight termination" ]
model: [ qsTr("None"), qsTr("Warning"), qsTr("Loiter"), qsTr("Return Home"), qsTr("Flight termination") ]
fact: _fenceAction
}
......@@ -156,7 +156,7 @@ QGCView {
id: fenceRadiusCheckBox
anchors.left: fenceActionLabel.left
anchors.baseline: fenceRadiusField.baseline
text: "Max radius:"
text: qsTr("Max radius:")
checked: _fenceRadius.value >= 0
onClicked: _fenceRadius.value = checked ? 100 : -1
......@@ -176,7 +176,7 @@ QGCView {
id: fenceAltMaxCheckBox
anchors.left: fenceActionLabel.left
anchors.baseline: fenceAltMaxField.baseline
text: "Max altitude:"
text: qsTr("Max altitude:")
checked: _fenceAlt.value >= 0
onClicked: _fenceAlt.value = checked ? 100 : -1
......@@ -197,7 +197,7 @@ QGCView {
id: rtlLabel
anchors.topMargin: _margins
anchors.top: triggerSettings.bottom
text: "Return Home Settings"
text: qsTr("Return Home Settings")
font.weight: Font.DemiBold
}
......@@ -234,7 +234,7 @@ QGCView {
anchors.margins: _margins
anchors.left: icon.right
anchors.baseline: climbField.baseline
text: "Climb to altitude of"
text: qsTr("Climb to altitude of")
}
FactTextField {
......@@ -274,8 +274,7 @@ QGCView {
anchors.left: climbLabel.left
checked: _rtlLandDelay.value >= 0
exclusiveGroup: homeLoiterGroup
text: "Loiter at Home altitude for"
text: qsTr("Loiter at Home altitude for")
onClicked: _rtlLandDelay.value = 60
}
......@@ -290,7 +289,7 @@ QGCView {
}
QGCLabel {
text: "Home loiter altitude"
text: qsTr("Home loiter altitude")
anchors.baseline: descendField.baseline
anchors.left: climbLabel.left
color: palette.text
......@@ -315,7 +314,7 @@ QGCView {
anchors.left: parent.left
anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize
text: "Warning: You have an advanced safety configuration set using the NAV_RCL_OBC parameter. The above settings may not apply.";
text: qsTr("Warning: You have an advanced safety configuration set using the NAV_RCL_OBC parameter. The above settings may not apply.")
visible: fact.value !== 0
wrapMode: Text.Wrap
......@@ -329,7 +328,7 @@ QGCView {
anchors.left: parent.left
anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize
text: "Warning: You have an advanced safety configuration set using the NAV_DLL_OBC parameter. The above settings may not apply.";
text: qsTr("Warning: You have an advanced safety configuration set using the NAV_DLL_OBC parameter. The above settings may not apply.")
visible: fact.value !== 0
wrapMode: Text.Wrap
......
......@@ -25,27 +25,27 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "RTL min alt:"
labelText: qsTr("RTL min alt:")
valueText: returnAltFact ? returnAltFact.valueString : ""
}
VehicleSummaryRow {
labelText: "RTL home alt:"
labelText: qsTr("RTL home alt:")
valueText: descendAltFact ? descendAltFact.valueString : ""
}
VehicleSummaryRow {
labelText: "RTL loiter delay:"
valueText: landDelayFact ? (landDelayFact.value < 0 ? "Disabled" : landDelayFact.valueString) : ""
labelText: qsTr("RTL loiter delay:")
valueText: landDelayFact ? (landDelayFact.value < 0 ? qsTr("Disabled") : landDelayFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Telemetry loss RTL:"
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? "Disabled" : commDLLossFact.valueString) : ""
labelText: qsTr("Telemetry loss RTL:")
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? qsTr("Disabled") : commDLLossFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "RC loss RTL (seconds):"
labelText: qsTr("RC loss RTL (seconds):")
valueText: commRCLossFact ? commRCLossFact.valueString : ""
}
}
......
......@@ -30,30 +30,30 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Compass 0:"
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Compass 1:"
labelText: qsTr("Compass 1:")
visible: mag1IdFact.value !== 0
valueText: "Ready"
valueText: qsTr("Ready")
}
VehicleSummaryRow {
labelText: "Compass 2:"
labelText: qsTr("Compass 2:")
visible: mag2IdFact.value !== 0
valueText: "Ready"
valueText: qsTr("Ready")
}
VehicleSummaryRow {
labelText: "Gyro:"
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Accelerometer:"
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
}
}
......@@ -28,23 +28,23 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Compass:"
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Compass:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Gyro:"
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Accelerometer:"
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Airspeed:"
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Airspeed:")
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment