Browse Source

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: Tomaz Canabrava <tomaz.canabrava@intel.com>
QGC4.4
Tomaz Canabrava 9 years ago
parent
commit
fb0c9f2651
  1. 22
      src/AutoPilotPlugins/PX4/AirframeComponent.qml
  2. 10
      src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml
  3. 22
      src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml
  4. 90
      src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml
  5. 28
      src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml
  6. 8
      src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
  7. 25
      src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml
  8. 32
      src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml
  9. 68
      src/AutoPilotPlugins/PX4/PowerComponent.qml
  10. 6
      src/AutoPilotPlugins/PX4/PowerComponentSummary.qml
  11. 29
      src/AutoPilotPlugins/PX4/SafetyComponent.qml
  12. 14
      src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml
  13. 70
      src/AutoPilotPlugins/PX4/SensorsComponent.qml
  14. 20
      src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
  15. 16
      src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml

22
src/AutoPilotPlugins/PX4/AirframeComponent.qml

@ -67,7 +67,7 @@ QGCView {
Component.onCompleted: { Component.onCompleted: {
if (controller.showCustomConfigPanel) { 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 { QGCViewMessage {
id: customConfigDialog id: customConfigDialog
message: "Your vehicle is using a custom airframe configuration. " + message: qsTr("Your vehicle is using a custom airframe configuration. ") +
"This configuration can only be modified through the Parameter Editor.\n\n" + qsTr("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." 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") property Fact sys_autostart: controller.getParameterFact(-1, "SYS_AUTOSTART")
@ -104,8 +104,8 @@ QGCView {
QGCLabel { QGCLabel {
anchors.fill: parent anchors.fill: parent
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
text: "Clicking “Apply” will save the changes you have made to your airframe configuration. " + text: qsTr("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." qsTr("Your vehicle will also be restarted in order to complete the process.")
} }
} }
} }
@ -127,9 +127,9 @@ QGCView {
id: helpText id: helpText
width: parent.width - applyButton.width - 5 width: parent.width - applyButton.width - 5
text: (controller.currentVehicleName != "" ? text: (controller.currentVehicleName != "" ?
"You've connected a " + controller.currentVehicleName : qsTr("You've connected a %1.").arg(controller.currentVehicleName) :
"Airframe is not set") + qsTr("Airframe is not set.")) +
". To change this configuration, select the desired airframe below then click “Apply and Restart”." qsTr("To change this configuration, select the desired airframe below then click “Apply and Restart”.")
font.weight: Font.DemiBold font.weight: Font.DemiBold
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -137,9 +137,9 @@ QGCView {
QGCButton { QGCButton {
id: applyButton id: applyButton
anchors.right: parent.right 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)
} }
} }

10
src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml

@ -25,18 +25,18 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "System ID:" labelText: qsTr("System ID:")
valueText: sysIdFact ? sysIdFact.valueString : "" valueText: sysIdFact ? sysIdFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Airframe type:" labelText: qsTr("Airframe type:")
valueText: autoStartSet ? controller.currentAirframeType : "Setup required" valueText: autoStartSet ? controller.currentAirframeType : qsTr("Setup required")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Vehicle:" labelText: qsTr("Vehicle:")
valueText: autoStartSet ? controller.currentVehicleName : "Setup required" valueText: autoStartSet ? controller.currentVehicleName : qsTr("Setup required")
} }
} }
} }

22
src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml

@ -33,15 +33,15 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Mode switch:" labelText: qsTr("Mode switch:")
valueText: _rcMapFltmode.value === 0 ? "Setup required" : _rcMapFltmode.enumStringValue valueText: _rcMapFltmode.value === 0 ? qsTr("Setup required") : _rcMapFltmode.enumStringValue
} }
Repeater { Repeater {
model: 6 model: 6
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Flight Mode " + (index + 1) + ":" labelText: qsTr("Flight Mode %1 :").arg(index + 1)
valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue
} }
} }
@ -59,23 +59,23 @@ FactPanel {
property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW") property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW")
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Mode switch:" labelText: qsTr("Mode switch:")
valueText: _rcMapModeSw.value === 0 ? "Setup required" : _rcMapModeSw.valueString valueText: _rcMapModeSw.value === 0 ? qsTr("Setup required") : _rcMapModeSw.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Position Ctl switch:" labelText: qsTr("Position Ctl switch:")
valueText: posCtlSwFact.value === 0 ? "Disabled" : posCtlSwFact.valueString valueText: posCtlSwFact.value === 0 ? qsTr("Disabled") : posCtlSwFact.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Loiter switch:" labelText: qsTr("Loiter switch:")
valueText: loiterSwFact.value === 0 ? "Disabled" : loiterSwFact.valueString valueText: loiterSwFact.value === 0 ? qsTr("Disabled") : loiterSwFact.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Return switch:" labelText: qsTr("Return switch:")
valueText: returnSwFact.value === 0 ? "Disabled" : returnSwFact.valueString valueText: returnSwFact.value === 0 ? qsTr("Disabled") : returnSwFact.valueString
} }
} }
} }

90
src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml

@ -46,61 +46,61 @@ Item {
// User visible strings // User visible strings
readonly property string title: "FLIGHT MODES" readonly property string title: qsTr("FLIGHT MODES")
property string topHelpText: "Assign Flight Modes to radio control channels and adjust the thresholds for triggering them. " + property string topHelpText: qsTr("Assign Flight Modes to radio control channels and adjust the thresholds for triggering them. ") +
"You can assign multiple flight modes to a single channel. " + qsTr("You can assign multiple flight modes to a single channel. ") +
"Turn your radio control on to test switch settings. " + qsTr("Turn your radio control on to test switch settings. ") +
"The following channels: " + controller.reservedChannels + qsTr("The following channels: ") + controller.reservedChannels +
" are not available for Flight Modes since they are already in use for other functions." qsTr(" are not available for Flight Modes since they are already in use for other functions.")
readonly property string fwManualModeName: "Manual/Main" readonly property string fwManualModeName: qsTr("Manual/Main")
readonly property string mrManualModeName: "Stabilized/Main" readonly property string mrManualModeName: qsTr("Stabilized/Main")
readonly property string fwManualModeDescription: "The pilot has full control of the aircraft, no assistance is provided. " + readonly property string fwManualModeDescription: qsTr("The pilot has full control of the aircraft, no assistance is provided. ") +
"The Main mode switch must always be assigned to a channel in order to fly" qsTr("The Main mode switch must always be assigned to a channel in order to fly")
readonly property string mrManualModeDescription: "The pilot has full control of the aircraft, only attitude is stabilized. " + readonly property string mrManualModeDescription: qsTr("The pilot has full control of the aircraft, only attitude is stabilized. ") +
"The Main mode switch must always be assigned to a channel in order to fly" qsTr("The Main mode switch must always be assigned to a channel in order to fly")
readonly property string assistModeName: "Assist" readonly property string assistModeName: qsTr("Assist")
readonly property string assistModeDescription: "If Position Control is placed on a seperate channel from the Main mode channel, an additional 'Assist' mode is added to the Main switch. " + readonly property string assistModeDescription: qsTr("If Position Control is placed on a seperate channel from the Main mode channel, an additional 'Assist' mode is added to the Main switch. ") +
"In order for the Attitude Control/Position Control switch to be active, the Main switch must be in Assist mode." qsTr("In order for the Attitude Control/Position Control switch to be active, the Main switch must be in Assist mode.")
readonly property string autoModeName: "Auto" readonly property string autoModeName: qsTr("Auto")
readonly property string autoModeDescription: "If Loiter is placed on a seperate channel from the Main mode channel, an additional 'Auto' mode is added to the Main switch. " + readonly property string autoModeDescription: qsTr("If Loiter is placed on a seperate channel from the Main mode channel, an additional 'Auto' mode is added to the Main switch. ") +
"In order for the Mission/Loiter switch to be active, the Main switch must be in Auto mode." qsTr("In order for the Mission/Loiter switch to be active, the Main switch must be in Auto mode.")
readonly property string fwAcroModeName: "Stabilized" readonly property string fwAcroModeName: qsTr("Stabilized")
readonly property string mrAcroModeName: "Acro" readonly property string mrAcroModeName: qsTr("Acro")
readonly property string fwAcroModeDescription: "The angular rates are controlled, but not the attitude. " readonly property string fwAcroModeDescription: qsTr("The angular rates are controlled, but not the attitude. ")
readonly property string mrAcroModeDescription: "The angular rates are controlled, but not the attitude. " readonly property string mrAcroModeDescription: qsTr("The angular rates are controlled, but not the attitude. ")
readonly property string altCtlModeName: "Altitude Control" readonly property string altCtlModeName: qsTr("Altitude Control")
readonly property string fwAltCtlModeDescription: "Roll stick controls banking, pitch stick altitude " + readonly property string fwAltCtlModeDescription: qsTr("Roll stick controls banking, pitch stick altitude ") +
"Throttle stick controls speed. " + qsTr("Throttle stick controls speed. ") +
"With no stick inputs the plane holds heading, but drifts off in wind. " qsTr("With no stick inputs the plane holds heading, but drifts off in wind. ")
readonly property string mrAltCtlModeDescription: "Same as Stablized mode except that Throttle controls climb/sink rate. Centered Throttle holds altitude steady. " readonly property string mrAltCtlModeDescription: qsTr("Same as Stablized mode except that Throttle controls climb/sink rate. Centered Throttle holds altitude steady. ")
readonly property string posCtlModeName: "Position Control" readonly property string posCtlModeName: qsTr("Position Control")
readonly property string fwPosCtlModeDescription: "Roll stick controls banking, pitch stick controls altitude. " + readonly property string fwPosCtlModeDescription: qsTr("Roll stick controls banking, pitch stick controls altitude. ") +
"Throttle stick controls speed." + qsTr("Throttle stick controls speed.") +
"With no stick inputs the plane flies a straight line, even in wind. " qsTr("With no stick inputs the plane flies a straight line, even in wind. ")
readonly property string mrPosCtlModeDescription: "Roll and Pitch sticks control sideways and forward speed " + readonly property string mrPosCtlModeDescription: qsTr("Roll and Pitch sticks control sideways and forward speed ") +
"Throttle stick controls climb / sink rade. " qsTr("Throttle stick controls climb / sink rade. ")
readonly property string missionModeName: "Auto Mission" readonly property string missionModeName: qsTr("Auto Mission")
readonly property string missionModeDescription: "The aircraft obeys the programmed mission sent by QGroundControl. " readonly property string missionModeDescription: qsTr("The aircraft obeys the programmed mission sent by QGroundControl. ")
readonly property string loiterModeName: "Auto Pause" readonly property string loiterModeName: qsTr("Auto Pause")
readonly property string fwLoiterModeDescription: "The aircraft flies in a circle around the current position at the current altitude. " readonly property string fwLoiterModeDescription: qsTr("The aircraft flies in a circle around the current position at the current altitude. ")
readonly property string mrLoiterModeDescription: "The multirotor hovers at the current position and altitude. " readonly property string mrLoiterModeDescription: qsTr("The multirotor hovers at the current position and altitude. ")
readonly property string returnModeName: "Return" readonly property string returnModeName: qsTr("Return")
readonly property string returnModeDescription: "The vehicle returns to the home position, loiters and then lands. " readonly property string returnModeDescription: qsTr("The vehicle returns to the home position, loiters and then lands. ")
readonly property string offboardModeName: "Offboard" readonly property string offboardModeName: qsTr("Offboard")
readonly property string offboardModeDescription: "All flight control aspects are controlled by an offboard system." readonly property string offboardModeDescription: qsTr("All flight control aspects are controlled by an offboard system.")
readonly property real modeSpacing: ScreenTools.defaultFontPixelHeight / 3 readonly property real modeSpacing: ScreenTools.defaultFontPixelHeight / 3
@ -177,7 +177,7 @@ Item {
id: joystickEnabledDialogComponent id: joystickEnabledDialogComponent
QGCViewMessage { QGCViewMessage {
message: "Flight Mode Config is disabled since you have a Joystick enabled." message: qsTr("Flight Mode Config is disabled since you have a Joystick enabled.")
} }
} }
@ -212,7 +212,7 @@ Item {
spacing: ScreenTools.defaultFontPixelHeight / 4 spacing: ScreenTools.defaultFontPixelHeight / 4
QGCButton { QGCButton {
text: "Use Single Channel Mode Selection" text: qsTr("Use Single Channel Mode Selection")
visible: controller.parameterExists(-1, "RC_MAP_FLTMODE") visible: controller.parameterExists(-1, "RC_MAP_FLTMODE")
onClicked: { onClicked: {
controller.getParameterFact(-1, "RC_MAP_MODE_SW").value = 0 controller.getParameterFact(-1, "RC_MAP_MODE_SW").value = 0
@ -222,7 +222,7 @@ Item {
QGCButton { QGCButton {
id: applyButton id: applyButton
text: "Generate Thresholds" text: qsTr("Generate Thresholds")
onClicked: controller.generateThresholds() onClicked: controller.generateThresholds()
} }
} }

28
src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml

@ -27,38 +27,38 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Roll:" labelText: qsTr("Roll:")
valueText: mapRollFact ? (mapRollFact.value === 0 ? "Setup required" : mapRollFact.valueString) : "" valueText: mapRollFact ? (mapRollFact.value === 0 ? qsTr("Setup required") : mapRollFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Pitch:" labelText: qsTr("Pitch:")
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? "Setup required" : mapPitchFact.valueString) : "" valueText: mapPitchFact ? (mapPitchFact.value === 0 ? qsTr("Setup required") : mapPitchFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Yaw:" labelText: qsTr("Yaw:")
valueText: mapYawFact ? (mapYawFact.value === 0 ? "Setup required" : mapYawFact.valueString) : "" valueText: mapYawFact ? (mapYawFact.value === 0 ? qsTr("Setup required") : mapYawFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Throttle:" labelText: qsTr("Throttle:")
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? "Setup required" : mapThrottleFact.valueString) : "" valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? qsTr("Setup required") : mapThrottleFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Flaps:" labelText: qsTr("Flaps:")
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? "Disabled" : mapFlapsFact.valueString) : "" valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? qsTr("Disabled") : mapFlapsFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Aux1:" labelText: qsTr("Aux1:")
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? "Disabled" : mapAux1Fact.valueString) : "" valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? qsTr("Disabled") : mapAux1Fact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Aux2:" labelText: qsTr("Aux2:")
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? "Disabled" : mapAux2Fact.valueString) : "" valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? qsTr("Disabled") : mapAux2Fact.valueString) : ""
} }
} }
} }

8
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml

@ -70,7 +70,7 @@ Item {
QGCLabel { QGCLabel {
id: flightModeLabel id: flightModeLabel
text: "Flight Mode Settings" text: qsTr("Flight Mode Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -93,7 +93,7 @@ Item {
QGCLabel { QGCLabel {
id: modeChannelLabel id: modeChannelLabel
anchors.baseline: modeChannelCombo.baseline anchors.baseline: modeChannelCombo.baseline
text: "Flight mode channel:" text: qsTr("Flight mode channel:")
} }
FactComboBox { FactComboBox {
@ -114,7 +114,7 @@ Item {
QGCLabel { QGCLabel {
anchors.baseline: modeCombo.baseline anchors.baseline: modeCombo.baseline
text: "Flight Mode " + index + ":" text: qsTr("Flight Mode %1:)").arg(index)
color: controller.activeFlightMode == index ? "yellow" : qgcPal.text color: controller.activeFlightMode == index ? "yellow" : qgcPal.text
} }
@ -134,7 +134,7 @@ Item {
spacing: _margins spacing: _margins
QGCLabel { QGCLabel {
text: "Switch Settings" text: qsTr("Switch Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }

25
src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml

@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel { sliderModel: ListModel {
ListElement { ListElement {
title: "Throttle Hover" title: qsTr("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." 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" param: "MPC_THR_HOVER"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
@ -41,8 +41,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Roll sensitivity" title: qsTr("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." 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" param: "MC_ROLL_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
@ -50,8 +50,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Pitch sensitivity" title: qsTr("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." 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" param: "MC_PITCH_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
@ -59,8 +59,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Altitude control sensitivity" title: qsTr("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." 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" param: "MPC_Z_FF"
min: 0 min: 0
max: 1.0 max: 1.0
@ -68,8 +68,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Position control sensitivity" title: qsTr("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." 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" param: "MPC_XY_FF"
min: 0 min: 0
max: 1.0 max: 1.0
@ -77,13 +77,12 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Manual minimum throttle" title: qsTr("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." 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" param: "MPC_MANTHR_MIN"
min: 0 min: 0
max: 0.15 max: 0.15
step: 0.01 step: 0.01
} }
} }
} }

32
src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml

@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel { sliderModel: ListModel {
ListElement { ListElement {
title: "Hover Roll sensitivity" title: qsTr("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." 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" param: "MC_ROLL_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
@ -41,8 +41,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Pitch sensitivity" title: qsTr("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." 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" param: "MC_PITCH_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
@ -50,8 +50,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Altitude control sensitivity" title: qsTr("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." 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" param: "MPC_Z_FF"
min: 0 min: 0
max: 1.0 max: 1.0
@ -59,16 +59,16 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Position control sensitivity" title: qsTr("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." 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" param: "MPC_XY_FF"
min: 0 min: 0
max: 1.0 max: 1.0
step: 0.1 step: 0.1
} }
ListElement { ListElement {
title: "Plane Roll sensitivity" title: qsTr("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." 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" param: "FW_R_TC"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
@ -76,8 +76,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Pitch sensitivity" title: qsTr("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." 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" param: "FW_P_TC"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
@ -85,8 +85,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Cruise throttle" title: qsTr("Plane Cruise throttle")
description: "This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%." description: qsTr("This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%.")
param: "FW_THR_CRUISE" param: "FW_THR_CRUISE"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
@ -94,8 +94,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Mission mode sensitivity" title: qsTr("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." 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" param: "FW_L1_PERIOD"
min: 12 min: 12
max: 50 max: 50

68
src/AutoPilotPlugins/PX4/PowerComponent.qml

@ -93,13 +93,13 @@ QGCView {
id: controller id: controller
factPanel: panel factPanel: panel
onOldFirmware: showMessage("ESC Calibration", "QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware.", StandardButton.Ok) onOldFirmware: showMessage(qsTr("ESC Calibration"), qsTr("QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware."), StandardButton.Ok)
onNewerFirmware: showMessage("ESC Calibration", "QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade QGroundControl.", StandardButton.Ok) onNewerFirmware: showMessage(qsTr("ESC Calibration"), qsTr("QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade QGroundControl."), StandardButton.Ok)
onBatteryConnected: showMessage("ESC Calibration", "Performing calibration. This will take a few seconds..", 0) onBatteryConnected: showMessage(qsTr("ESC Calibration"), qsTr("Performing calibration. This will take a few seconds.."), 0)
onCalibrationFailed: showMessage("ESC Calibration failed", errorMessage, StandardButton.Ok) onCalibrationFailed: showMessage(qsTr("ESC Calibration failed"), errorMessage, StandardButton.Ok)
onCalibrationSuccess: showMessage("ESC Calibration", "Calibration complete. You can disconnect your battery now if you like.", StandardButton.Ok) onCalibrationSuccess: showMessage(qsTr("ESC Calibration"), qsTr("Calibration complete. You can disconnect your battery now if you like."), StandardButton.Ok)
onConnectBattery: showMessage("ESC Calibration", highlightPrefix + "WARNING: Props must be removed from vehicle prior to performing ESC calibration." + highlightSuffix + " Connect the battery now and calibration will begin.", 0) onConnectBattery: showMessage(qsTr("ESC Calibration"), highlightPrefix + qsTr("WARNING: Props must be removed from vehicle prior to performing ESC calibration.") + highlightSuffix + qsTr(" Connect the battery now and calibration will begin."), 0)
onDisconnectBattery: showMessage("ESC Calibration failed", "You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again.", StandardButton.Ok) onDisconnectBattery: showMessage(qsTr("ESC Calibration failed"), qsTr("You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again."), StandardButton.Ok)
} }
QGCPalette { id: palette; colorGroupEnabled: panel.enabled } QGCPalette { id: palette; colorGroupEnabled: panel.enabled }
@ -121,7 +121,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelHeight * 0.5 spacing: ScreenTools.defaultFontPixelHeight * 0.5
QGCLabel { QGCLabel {
text: "Battery" text: qsTr("Battery")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -144,7 +144,7 @@ QGCView {
QGCLabel { QGCLabel {
id: cellsLabel id: cellsLabel
text: "Number of Cells (in Series)" text: qsTr("Number of Cells (in Series)")
anchors.baseline: cellsField.baseline anchors.baseline: cellsField.baseline
} }
@ -162,7 +162,7 @@ QGCView {
QGCLabel { QGCLabel {
id: battHighLabel id: battHighLabel
text: "Full Voltage (per cell)" text: qsTr("Full Voltage (per cell)")
anchors.baseline: battHighField.baseline anchors.baseline: battHighField.baseline
} }
@ -180,7 +180,7 @@ QGCView {
QGCLabel { QGCLabel {
id: battLowLabel id: battLowLabel
text: "Empty Voltage (per cell)" text: qsTr("Empty Voltage (per cell)")
anchors.baseline: battLowField.baseline anchors.baseline: battLowField.baseline
} }
@ -215,7 +215,7 @@ QGCView {
Row { Row {
QGCLabel { QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12 width: ScreenTools.defaultFontPixelWidth * 12
text: "Battery Max:" text: qsTr("Battery Max:")
} }
QGCLabel { QGCLabel {
text: (battNumCells.value * battHighVolt.value).toFixed(1) + ' V' text: (battNumCells.value * battHighVolt.value).toFixed(1) + ' V'
@ -224,7 +224,7 @@ QGCView {
Row { Row {
QGCLabel { QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12 width: ScreenTools.defaultFontPixelWidth * 12
text: "Battery Min:" text: qsTr("Battery Min:")
} }
QGCLabel { QGCLabel {
text: (battNumCells.value * battLowVolt.value).toFixed(1) + ' V' text: (battNumCells.value * battLowVolt.value).toFixed(1) + ' V'
@ -234,7 +234,7 @@ QGCView {
} // Rectangle - Battery settings } // Rectangle - Battery settings
QGCLabel { QGCLabel {
text: "ESC PWM Minimum and Maximum Calibration" text: qsTr("ESC PWM Minimum and Maximum Calibration")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -252,15 +252,15 @@ QGCView {
QGCLabel { QGCLabel {
color: palette.warningText color: palette.warningText
text: "WARNING: Propellers must be removed from vehicle prior to performing ESC calibration." text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.")
} }
QGCLabel { QGCLabel {
text: "You must use USB connection for this operation." text: qsTr("You must use USB connection for this operation.")
} }
QGCButton { QGCButton {
text: "Calibrate" text: qsTr("Calibrate")
width: ScreenTools.defaultFontPixelWidth * 20 width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.calibrateEsc() onClicked: controller.calibrateEsc()
} }
@ -269,11 +269,11 @@ QGCView {
QGCCheckBox { QGCCheckBox {
id: showUAVCAN id: showUAVCAN
text: "Show UAVCAN Settings" text: qsTr("Show UAVCAN Settings")
} }
QGCLabel { QGCLabel {
text: "UAVCAN Bus Configuration" text: qsTr("UAVCAN Bus Configuration")
font.weight: Font.DemiBold font.weight: Font.DemiBold
visible: showUAVCAN.checked visible: showUAVCAN.checked
} }
@ -297,13 +297,13 @@ QGCView {
fact: controller.getParameterFact(-1, "UAVCAN_ENABLE") fact: controller.getParameterFact(-1, "UAVCAN_ENABLE")
checkedValue: 3 checkedValue: 3
uncheckedValue: 0 uncheckedValue: 0
text: "Enable UAVCAN as the default MAIN output bus (requires autopilot restart)" text: qsTr("Enable UAVCAN as the default MAIN output bus (requires autopilot restart)")
} }
} }
} }
QGCLabel { QGCLabel {
text: "UAVCAN Motor Index and Direction Assignment" text: qsTr("UAVCAN Motor Index and Direction Assignment")
font.weight: Font.DemiBold font.weight: Font.DemiBold
visible: showUAVCAN.checked visible: showUAVCAN.checked
} }
@ -324,25 +324,25 @@ QGCView {
QGCLabel { QGCLabel {
color: palette.warningText color: palette.warningText
text: "WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration." text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.")
} }
QGCLabel { QGCLabel {
text: "ESC parameters will only be accessible in the editor after assignment." text: qsTr("ESC parameters will only be accessible in the editor after assignment.")
} }
QGCLabel { QGCLabel {
text: "Start the process, then turn each motor into its turn direction, in the order of their motor indices." text: qsTr("Start the process, then turn each motor into its turn direction, in the order of their motor indices.")
} }
QGCButton { QGCButton {
text: "Start Assignment" text: qsTr("Start Assignment")
width: ScreenTools.defaultFontPixelWidth * 20 width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.busConfigureActuators() onClicked: controller.busConfigureActuators()
} }
QGCButton { QGCButton {
text: "Stop Assignment" text: qsTr("Stop Assignment")
width: ScreenTools.defaultFontPixelWidth * 20 width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.stopBusConfigureActuators() onClicked: controller.stopBusConfigureActuators()
} }
@ -351,11 +351,11 @@ QGCView {
QGCCheckBox { QGCCheckBox {
id: showAdvanced id: showAdvanced
text: "Show Advanced Settings" text: qsTr("Show Advanced Settings")
} }
QGCLabel { QGCLabel {
text: "Advanced Power Settings" text: qsTr("Advanced Power Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
visible: showAdvanced.checked visible: showAdvanced.checked
} }
@ -379,7 +379,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
text: "Voltage Drop on Full Load (per cell)" text: qsTr("Voltage Drop on Full Load (per cell)")
anchors.baseline: battDropField.baseline anchors.baseline: battDropField.baseline
} }
@ -394,20 +394,20 @@ QGCView {
QGCLabel { QGCLabel {
width: parent.width width: parent.width
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
text: "Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full " + text: qsTr("Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full ") +
"throttle, divided by the number of battery cells. Leave at the default if unsure. " + qsTr("throttle, divided by the number of battery cells. Leave at the default if unsure. ") +
highlightPrefix + "If this value is set too high, the battery might be deep discharged and damaged." + highlightSuffix highlightPrefix + qsTr("If this value is set too high, the battery might be deep discharged and damaged.") + highlightSuffix
} }
Row { Row {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
text: "Compensated Minimum Voltage:" text: qsTr("Compensated Minimum Voltage:")
} }
QGCLabel { QGCLabel {
text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + ' V' text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + qsTr(" V")
} }
} }
} }

6
src/AutoPilotPlugins/PX4/PowerComponentSummary.qml

@ -50,17 +50,17 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Battery Full:" labelText: qsTr("Battery Full:")
valueText: batVChargedFact ? batVChargedFact.valueString : "" valueText: batVChargedFact ? batVChargedFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Battery Empty:" labelText: qsTr("Battery Empty:")
valueText: batVEmptyFact ? batVEmptyFact.valueString : "" valueText: batVEmptyFact ? batVEmptyFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Number of Cells:" labelText: qsTr("Number of Cells:")
valueText: batCellsFact ? batCellsFact.valueString : "" valueText: batCellsFact ? batCellsFact.valueString : ""
} }
} }

29
src/AutoPilotPlugins/PX4/SafetyComponent.qml

@ -63,7 +63,7 @@ QGCView {
QGCLabel { QGCLabel {
id: triggerLabel id: triggerLabel
text: "Triggers For Return Home" text: qsTr("Triggers For Return Home")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -78,7 +78,7 @@ QGCView {
color: palette.windowShade color: palette.windowShade
QGCLabel { QGCLabel {
text: "RC Transmitter Signal Loss: Return Home after" text: qsTr("RC Transmitter Signal Loss: Return Home after")
anchors.margins: _margins anchors.margins: _margins
anchors.left: parent.left anchors.left: parent.left
anchors.baseline: rcLossField.baseline anchors.baseline: rcLossField.baseline
@ -101,7 +101,7 @@ QGCView {
fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN") fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN")
checkedValue: 1 checkedValue: 1
uncheckedValue: 0 uncheckedValue: 0
text: "Telemetry Signal Timeout: Return Home after" text: qsTr("Telemetry Signal Timeout: Return Home after")
} }
FactTextField { FactTextField {
@ -121,7 +121,7 @@ QGCView {
anchors.leftMargin: _margins anchors.leftMargin: _margins
anchors.left: triggerSettings.right anchors.left: triggerSettings.right
anchors.top: parent.top anchors.top: parent.top
text: "GeoFence" text: qsTr("GeoFence")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -139,7 +139,7 @@ QGCView {
anchors.margins: _margins anchors.margins: _margins
anchors.left: parent.left anchors.left: parent.left
anchors.baseline: fenceActionCombo.baseline anchors.baseline: fenceActionCombo.baseline
text: "Action on breach:" text: qsTr("Action on breach:")
} }
FactComboBox { FactComboBox {
@ -148,7 +148,7 @@ QGCView {
anchors.left: fenceActionLabel.right anchors.left: fenceActionLabel.right
anchors.top: parent.top anchors.top: parent.top
width: fenceAltMaxField.width 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 fact: _fenceAction
} }
@ -156,7 +156,7 @@ QGCView {
id: fenceRadiusCheckBox id: fenceRadiusCheckBox
anchors.left: fenceActionLabel.left anchors.left: fenceActionLabel.left
anchors.baseline: fenceRadiusField.baseline anchors.baseline: fenceRadiusField.baseline
text: "Max radius:" text: qsTr("Max radius:")
checked: _fenceRadius.value >= 0 checked: _fenceRadius.value >= 0
onClicked: _fenceRadius.value = checked ? 100 : -1 onClicked: _fenceRadius.value = checked ? 100 : -1
@ -176,7 +176,7 @@ QGCView {
id: fenceAltMaxCheckBox id: fenceAltMaxCheckBox
anchors.left: fenceActionLabel.left anchors.left: fenceActionLabel.left
anchors.baseline: fenceAltMaxField.baseline anchors.baseline: fenceAltMaxField.baseline
text: "Max altitude:" text: qsTr("Max altitude:")
checked: _fenceAlt.value >= 0 checked: _fenceAlt.value >= 0
onClicked: _fenceAlt.value = checked ? 100 : -1 onClicked: _fenceAlt.value = checked ? 100 : -1
@ -197,7 +197,7 @@ QGCView {
id: rtlLabel id: rtlLabel
anchors.topMargin: _margins anchors.topMargin: _margins
anchors.top: triggerSettings.bottom anchors.top: triggerSettings.bottom
text: "Return Home Settings" text: qsTr("Return Home Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
@ -234,7 +234,7 @@ QGCView {
anchors.margins: _margins anchors.margins: _margins
anchors.left: icon.right anchors.left: icon.right
anchors.baseline: climbField.baseline anchors.baseline: climbField.baseline
text: "Climb to altitude of" text: qsTr("Climb to altitude of")
} }
FactTextField { FactTextField {
@ -274,8 +274,7 @@ QGCView {
anchors.left: climbLabel.left anchors.left: climbLabel.left
checked: _rtlLandDelay.value >= 0 checked: _rtlLandDelay.value >= 0
exclusiveGroup: homeLoiterGroup exclusiveGroup: homeLoiterGroup
text: "Loiter at Home altitude for" text: qsTr("Loiter at Home altitude for")
onClicked: _rtlLandDelay.value = 60 onClicked: _rtlLandDelay.value = 60
} }
@ -290,7 +289,7 @@ QGCView {
} }
QGCLabel { QGCLabel {
text: "Home loiter altitude" text: qsTr("Home loiter altitude")
anchors.baseline: descendField.baseline anchors.baseline: descendField.baseline
anchors.left: climbLabel.left anchors.left: climbLabel.left
color: palette.text color: palette.text
@ -315,7 +314,7 @@ QGCView {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize 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 visible: fact.value !== 0
wrapMode: Text.Wrap wrapMode: Text.Wrap
@ -329,7 +328,7 @@ QGCView {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize 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 visible: fact.value !== 0
wrapMode: Text.Wrap wrapMode: Text.Wrap

14
src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml

@ -25,27 +25,27 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL min alt:" labelText: qsTr("RTL min alt:")
valueText: returnAltFact ? returnAltFact.valueString : "" valueText: returnAltFact ? returnAltFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL home alt:" labelText: qsTr("RTL home alt:")
valueText: descendAltFact ? descendAltFact.valueString : "" valueText: descendAltFact ? descendAltFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL loiter delay:" labelText: qsTr("RTL loiter delay:")
valueText: landDelayFact ? (landDelayFact.value < 0 ? "Disabled" : landDelayFact.valueString) : "" valueText: landDelayFact ? (landDelayFact.value < 0 ? qsTr("Disabled") : landDelayFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Telemetry loss RTL:" labelText: qsTr("Telemetry loss RTL:")
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? "Disabled" : commDLLossFact.valueString) : "" valueText: commDLLossFact ? (commDLLossFact.value != -1 ? qsTr("Disabled") : commDLLossFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RC loss RTL (seconds):" labelText: qsTr("RC loss RTL (seconds):")
valueText: commRCLossFact ? commRCLossFact.valueString : "" valueText: commRCLossFact ? commRCLossFact.valueString : ""
} }
} }

70
src/AutoPilotPlugins/PX4/SensorsComponent.qml

@ -40,16 +40,16 @@ QGCView {
// Help text which is shown both in the status text area prior to pressing a cal button and in the // Help text which is shown both in the status text area prior to pressing a cal button and in the
// pre-calibration dialog. // pre-calibration dialog.
readonly property string boardRotationText: "If the autopilot is mounted in flight direction, leave the default value (ROTATION_NONE)" readonly property string boardRotationText: qsTr("If the autopilot is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string compassRotationText: "If the compass or GPS module is mounted in flight direction, leave the default value (ROTATION_NONE)" readonly property string compassRotationText: qsTr("If the compass or GPS module is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string compassHelp: "For Compass calibration you will need to rotate your vehicle through a number of positions. Most users prefer to do this wirelessly with the telemetry link." readonly property string compassHelp: qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions. Most users prefer to do this wirelessly with the telemetry link.")
readonly property string gyroHelp: "For Gyroscope calibration you will need to place your vehicle on a surface and leave it still." readonly property string gyroHelp: qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.")
readonly property string accelHelp: "For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds." readonly property string accelHelp: qsTr("For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds.")
readonly property string levelHelp: "To level the horizon you need to place the vehicle in its level flight position and press OK." readonly property string levelHelp: qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
readonly property string airspeedHelp: "For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor." readonly property string airspeedHelp: qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor.")
readonly property string statusTextAreaDefaultText: "Start the individual calibration steps by clicking one of the buttons above." readonly property string statusTextAreaDefaultText: qsTr("Start the individual calibration steps by clicking one of the buttons above.")
// Used to pass what type of calibration is being performed to the preCalibrationDialog // Used to pass what type of calibration is being performed to the preCalibrationDialog
property string preCalibrationDialogType property string preCalibrationDialogType
@ -127,13 +127,13 @@ QGCView {
onSetCompassRotations: { onSetCompassRotations: {
if (showCompass0Rot || showCompass1Rot || showCompass2Rot) { if (showCompass0Rot || showCompass1Rot || showCompass2Rot) {
showDialog(compassRotationDialogComponent, "Set Compass Rotation(s)", qgcView.showDialogDefaultWidth, StandardButton.Ok) showDialog(compassRotationDialogComponent, qsTr("Set Compass Rotation(s)"), qgcView.showDialogDefaultWidth, StandardButton.Ok)
} }
} }
onWaitingForCancelChanged: { onWaitingForCancelChanged: {
if (controller.waitingForCancel) { if (controller.waitingForCancel) {
showMessage("Calibration Cancel", "Waiting for Vehicle to response to Cancel. This may take a few seconds.", 0) showMessage(qsTr("Calibration Cancel"), qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."), 0)
} else { } else {
hideDialog() hideDialog()
} }
@ -220,7 +220,7 @@ QGCView {
id: compass0ComponentLabel id: compass0ComponentLabel
QGCLabel { QGCLabel {
text: "External Compass Orientation" text: qsTr("External Compass Orientation")
} }
} }
@ -240,7 +240,7 @@ QGCView {
Component { Component {
id: compass1ComponentLabel id: compass1ComponentLabel
QGCLabel { text: "Compass 1 Orientation" } QGCLabel { text: qsTr("Compass 1 Orientation") }
} }
Component { Component {
id: compass1ComponentCombo id: compass1ComponentCombo
@ -259,7 +259,7 @@ QGCView {
Component { Component {
id: compass2ComponentLabel id: compass2ComponentLabel
QGCLabel { text: "Compass 2 Orientation" } QGCLabel { text: qsTr("Compass 2 Orientation") }
} }
Component { Component {
id: compass2ComponentCombo id: compass2ComponentCombo
@ -289,78 +289,78 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { text: "Calibrate:"; anchors.baseline: compassButton.baseline } QGCLabel { text: qsTr("Calibrate:"); anchors.baseline: compassButton.baseline }
IndicatorButton { IndicatorButton {
id: compassButton id: compassButton
width: parent.buttonWidth width: parent.buttonWidth
text: "Compass" text: qsTr("Compass")
indicatorGreen: cal_mag0_id.value != 0 indicatorGreen: cal_mag0_id.value != 0
onClicked: { onClicked: {
preCalibrationDialogType = "compass" preCalibrationDialogType = "compass"
preCalibrationDialogHelp = compassHelp preCalibrationDialogHelp = compassHelp
showDialog(preCalibrationDialogComponent, "Calibrate Compass", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) showDialog(preCalibrationDialogComponent, qsTr("Calibrate Compass"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
} }
} }
IndicatorButton { IndicatorButton {
id: gyroButton id: gyroButton
width: parent.buttonWidth width: parent.buttonWidth
text: "Gyroscope" text: qsTr("Gyroscope")
indicatorGreen: cal_gyro0_id.value != 0 indicatorGreen: cal_gyro0_id.value != 0
onClicked: { onClicked: {
preCalibrationDialogType = "gyro" preCalibrationDialogType = "gyro"
preCalibrationDialogHelp = gyroHelp preCalibrationDialogHelp = gyroHelp
showDialog(preCalibrationDialogComponent, "Calibrate Gyro", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) showDialog(preCalibrationDialogComponent, qsTr("Calibrate Gyro"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
} }
} }
IndicatorButton { IndicatorButton {
id: accelButton id: accelButton
width: parent.buttonWidth width: parent.buttonWidth
text: "Accelerometer" text: qsTr("Accelerometer")
indicatorGreen: cal_acc0_id.value != 0 indicatorGreen: cal_acc0_id.value != 0
onClicked: { onClicked: {
preCalibrationDialogType = "accel" preCalibrationDialogType = "accel"
preCalibrationDialogHelp = accelHelp preCalibrationDialogHelp = accelHelp
showDialog(preCalibrationDialogComponent, "Calibrate Accelerometer", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) showDialog(preCalibrationDialogComponent, qsTr("Calibrate Accelerometer"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
} }
} }
IndicatorButton { IndicatorButton {
id: levelButton id: levelButton
width: parent.buttonWidth width: parent.buttonWidth
text: "Level Horizon" text: qsTr("Level Horizon")
indicatorGreen: sens_board_x_off.value != 0 indicatorGreen: sens_board_x_off.value != 0
enabled: cal_acc0_id.value != 0 && cal_gyro0_id.value != 0 enabled: cal_acc0_id.value != 0 && cal_gyro0_id.value != 0
onClicked: { onClicked: {
preCalibrationDialogType = "level" preCalibrationDialogType = "level"
preCalibrationDialogHelp = levelHelp preCalibrationDialogHelp = levelHelp
showDialog(preCalibrationDialogComponent, "Level Horizon", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) showDialog(preCalibrationDialogComponent, qsTr("Level Horizon"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
} }
} }
IndicatorButton { IndicatorButton {
id: airspeedButton id: airspeedButton
width: parent.buttonWidth width: parent.buttonWidth
text: "Airspeed" text: qsTr("Airspeed")
visible: controller.fixedWing visible: controller.fixedWing
indicatorGreen: sens_dpres_off.value != 0 indicatorGreen: sens_dpres_off.value != 0
onClicked: { onClicked: {
preCalibrationDialogType = "airspeed" preCalibrationDialogType = "airspeed"
preCalibrationDialogHelp = airspeedHelp preCalibrationDialogHelp = airspeedHelp
showDialog(preCalibrationDialogComponent, "Calibrate Airspeed", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok) showDialog(preCalibrationDialogComponent, qsTr("Calibrate Airspeed"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
} }
} }
QGCButton { QGCButton {
id: cancelButton id: cancelButton
text: "Cancel" text: qsTr("Cancel")
enabled: false enabled: false
onClicked: controller.cancelCalibration() onClicked: controller.cancelCalibration()
} }
@ -424,42 +424,42 @@ QGCView {
visible: controller.orientationCalDownSideVisible visible: controller.orientationCalDownSideVisible
calValid: controller.orientationCalDownSideDone calValid: controller.orientationCalDownSideDone
calInProgress: controller.orientationCalDownSideInProgress calInProgress: controller.orientationCalDownSideInProgress
calInProgressText: controller.orientationCalDownSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalDownSideRotate ? "qrc:///qmlimages/VehicleDownRotate.png" : "qrc:///qmlimages/VehicleDown.png" imageSource: controller.orientationCalDownSideRotate ? "qrc:///qmlimages/VehicleDownRotate.png" : "qrc:///qmlimages/VehicleDown.png"
} }
VehicleRotationCal { VehicleRotationCal {
visible: controller.orientationCalUpsideDownSideVisible visible: controller.orientationCalUpsideDownSideVisible
calValid: controller.orientationCalUpsideDownSideDone calValid: controller.orientationCalUpsideDownSideDone
calInProgress: controller.orientationCalUpsideDownSideInProgress calInProgress: controller.orientationCalUpsideDownSideInProgress
calInProgressText: controller.orientationCalUpsideDownSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalUpsideDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png" imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png"
} }
VehicleRotationCal { VehicleRotationCal {
visible: controller.orientationCalNoseDownSideVisible visible: controller.orientationCalNoseDownSideVisible
calValid: controller.orientationCalNoseDownSideDone calValid: controller.orientationCalNoseDownSideDone
calInProgress: controller.orientationCalNoseDownSideInProgress calInProgress: controller.orientationCalNoseDownSideInProgress
calInProgressText: controller.orientationCalNoseDownSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalNoseDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalNoseDownSideRotate ? "qrc:///qmlimages/VehicleNoseDownRotate.png" : "qrc:///qmlimages/VehicleNoseDown.png" imageSource: controller.orientationCalNoseDownSideRotate ? "qrc:///qmlimages/VehicleNoseDownRotate.png" : "qrc:///qmlimages/VehicleNoseDown.png"
} }
VehicleRotationCal { VehicleRotationCal {
visible: controller.orientationCalTailDownSideVisible visible: controller.orientationCalTailDownSideVisible
calValid: controller.orientationCalTailDownSideDone calValid: controller.orientationCalTailDownSideDone
calInProgress: controller.orientationCalTailDownSideInProgress calInProgress: controller.orientationCalTailDownSideInProgress
calInProgressText: controller.orientationCalTailDownSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalTailDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png" imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png"
} }
VehicleRotationCal { VehicleRotationCal {
visible: controller.orientationCalLeftSideVisible visible: controller.orientationCalLeftSideVisible
calValid: controller.orientationCalLeftSideDone calValid: controller.orientationCalLeftSideDone
calInProgress: controller.orientationCalLeftSideInProgress calInProgress: controller.orientationCalLeftSideInProgress
calInProgressText: controller.orientationCalLeftSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalLeftSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalLeftSideRotate ? "qrc:///qmlimages/VehicleLeftRotate.png" : "qrc:///qmlimages/VehicleLeft.png" imageSource: controller.orientationCalLeftSideRotate ? "qrc:///qmlimages/VehicleLeftRotate.png" : "qrc:///qmlimages/VehicleLeft.png"
} }
VehicleRotationCal { VehicleRotationCal {
visible: controller.orientationCalRightSideVisible visible: controller.orientationCalRightSideVisible
calValid: controller.orientationCalRightSideDone calValid: controller.orientationCalRightSideDone
calInProgress: controller.orientationCalRightSideInProgress calInProgress: controller.orientationCalRightSideInProgress
calInProgressText: controller.orientationCalRightSideRotate ? "Rotate" : "Hold Still" calInProgressText: controller.orientationCalRightSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png" imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png"
} }
} }
@ -475,7 +475,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { QGCLabel {
text: "Autopilot Orientation" text: qsTr("Autopilot Orientation")
} }
QGCLabel { QGCLabel {
@ -500,7 +500,7 @@ QGCView {
id: compass0ComponentLabel2 id: compass0ComponentLabel2
QGCLabel { QGCLabel {
text: "External Compass Orientation" text: qsTr("External Compass Orientation")
} }
} }
@ -527,7 +527,7 @@ QGCView {
id: compass1ComponentLabel2 id: compass1ComponentLabel2
QGCLabel { QGCLabel {
text: "External Compass 1 Orientation" text: qsTr("External Compass 1 Orientation")
} }
} }
@ -554,7 +554,7 @@ QGCView {
id: compass2ComponentLabel2 id: compass2ComponentLabel2
QGCLabel { QGCLabel {
text: "Compass 2 Orientation" text: qsTr("Compass 2 Orientation")
} }
} }

20
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml

@ -30,30 +30,30 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 0:" labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 1:" labelText: qsTr("Compass 1:")
visible: mag1IdFact.value !== 0 visible: mag1IdFact.value !== 0
valueText: "Ready" valueText: qsTr("Ready")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 2:" labelText: qsTr("Compass 2:")
visible: mag2IdFact.value !== 0 visible: mag2IdFact.value !== 0
valueText: "Ready" valueText: qsTr("Ready")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Gyro:" labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Accelerometer:" labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
} }
} }

16
src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml

@ -28,23 +28,23 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass:" labelText: qsTr("Compass:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Gyro:" labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Accelerometer:" labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Airspeed:" labelText: qsTr("Airspeed:")
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? "Setup required" : "Ready") : "" valueText: dpressOffFact ? (dpressOffFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
} }
} }

Loading…
Cancel
Save