|
|
|
@ -172,7 +172,7 @@ Item {
@@ -172,7 +172,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
QGCCheckBox { |
|
|
|
|
id: followVehicleCheckBox |
|
|
|
|
text: "Follow Vehicle" |
|
|
|
|
text: qsTr("Follow Vehicle") |
|
|
|
|
checked: _flightMap ? _flightMap._followVehicle : false |
|
|
|
|
anchors.baseline: centerMapButton.baseline |
|
|
|
|
|
|
|
|
@ -184,7 +184,7 @@ Item {
@@ -184,7 +184,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
id: centerMapButton |
|
|
|
|
text: "Center map on Vehicle" |
|
|
|
|
text: qsTr("Center map on Vehicle") |
|
|
|
|
enabled: _activeVehicle && !followVehicleCheckBox.checked |
|
|
|
|
|
|
|
|
|
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle |
|
|
|
@ -232,7 +232,7 @@ Item {
@@ -232,7 +232,7 @@ Item {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: "Clear flight trails" |
|
|
|
|
text: qsTr("Clear flight trails") |
|
|
|
|
enabled: QGroundControl.multiVehicleManager.activeVehicle |
|
|
|
|
|
|
|
|
|
onClicked: { |
|
|
|
@ -387,7 +387,7 @@ Item {
@@ -387,7 +387,7 @@ Item {
|
|
|
|
|
_activeVehicle.setCurrentMissionSequence(_flightMap._retaskSequence) |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
console.warn("Internal error: unknown confirmActionCode", confirmActionCode) |
|
|
|
|
console.warn(qsTr("Internal error: unknown confirmActionCode"), confirmActionCode) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -404,21 +404,21 @@ Item {
@@ -404,21 +404,21 @@ Item {
|
|
|
|
|
confirmActionCode = actionCode |
|
|
|
|
switch (confirmActionCode) { |
|
|
|
|
case confirmArm: |
|
|
|
|
guidedModeConfirm.confirmText = "arm" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("arm") |
|
|
|
|
break; |
|
|
|
|
case confirmDisarm: |
|
|
|
|
guidedModeConfirm.confirmText = "disarm" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("disarm") |
|
|
|
|
break; |
|
|
|
|
case confirmEmergencyStop: |
|
|
|
|
guidedModeConfirm.confirmText = "STOP ALL MOTORS!" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("STOP ALL MOTORS!") |
|
|
|
|
break; |
|
|
|
|
case confirmTakeoff: |
|
|
|
|
altitudeSlider.visible = true |
|
|
|
|
altitudeSlider.setInitialValueMeters(10) |
|
|
|
|
guidedModeConfirm.confirmText = "takeoff" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("takeoff") |
|
|
|
|
break; |
|
|
|
|
case confirmLand: |
|
|
|
|
guidedModeConfirm.confirmText = "land" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("land") |
|
|
|
|
break; |
|
|
|
|
case confirmHome: |
|
|
|
|
guidedModeConfirm.confirmText = "return to launch" |
|
|
|
@ -426,13 +426,13 @@ Item {
@@ -426,13 +426,13 @@ Item {
|
|
|
|
|
case confirmChangeAlt: |
|
|
|
|
altitudeSlider.visible = true |
|
|
|
|
altitudeSlider.setInitialValueAppSettingsDistanceUnits(_activeVehicle.altitudeAMSL.value) |
|
|
|
|
guidedModeConfirm.confirmText = "change altitude" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("change altitude") |
|
|
|
|
break; |
|
|
|
|
case confirmGoTo: |
|
|
|
|
guidedModeConfirm.confirmText = "move vehicle" |
|
|
|
|
guidedModeConfirm.confirmText = qsTr("move vehicle") |
|
|
|
|
break; |
|
|
|
|
case confirmRetask: |
|
|
|
|
_guidedModeBar.confirmText = "active waypoint change" |
|
|
|
|
_guidedModeBar.confirmText = qsTr("active waypoint change") |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
guidedModeBar.visible = false |
|
|
|
@ -450,24 +450,24 @@ Item {
@@ -450,24 +450,24 @@ Item {
|
|
|
|
|
spacing: _margins |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? "Emergency Stop" : "Disarm") : "Arm" |
|
|
|
|
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? qsTr("Emergency Stop") : qsTr("Disarm")) : qsTr("Arm") |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_activeVehicle.armed ? (_activeVehicle.flying ? _guidedModeBar.confirmEmergencyStop : _guidedModeBar.confirmDisarm) : _guidedModeBar.confirmArm) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: "RTL" |
|
|
|
|
text: qsTr("RTL") |
|
|
|
|
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.flying |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmHome) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: (_activeVehicle && _activeVehicle.flying) ? "Land" : "Takeoff" |
|
|
|
|
text: (_activeVehicle && _activeVehicle.flying) ? qsTr("Land"): qsTr("Takeoff") |
|
|
|
|
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_activeVehicle.flying ? _guidedModeBar.confirmLand : _guidedModeBar.confirmTakeoff) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: "Pause" |
|
|
|
|
text: qsTr("Pause") |
|
|
|
|
visible: _activeVehicle && _activeVehicle.pauseVehicleSupported && _activeVehicle.flying |
|
|
|
|
onClicked: { |
|
|
|
|
guidedModeHideTimer.restart() |
|
|
|
@ -476,7 +476,7 @@ Item {
@@ -476,7 +476,7 @@ Item {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
text: "Change Altitude" |
|
|
|
|
text: qsTr("Change Altitude") |
|
|
|
|
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmChangeAlt) |
|
|
|
|
} |
|
|
|
@ -557,7 +557,7 @@ Item {
@@ -557,7 +557,7 @@ Item {
|
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
text: "Alt (rel)" |
|
|
|
|
text: qsTr("Alt (rel)") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
|