|
|
|
@ -442,27 +442,31 @@ Item {
@@ -442,27 +442,31 @@ Item {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Row { |
|
|
|
|
spacing: _margins |
|
|
|
|
spacing: _margins * 2 |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
pointSize: ScreenTools.largeFontPointSize |
|
|
|
|
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? qsTr("Emergency Stop") : qsTr("Disarm")) : qsTr("Arm") |
|
|
|
|
visible: _activeVehicle |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_activeVehicle.armed ? (_activeVehicle.flying ? _guidedModeBar.confirmEmergencyStop : _guidedModeBar.confirmDisarm) : _guidedModeBar.confirmArm) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
pointSize: ScreenTools.largeFontPointSize |
|
|
|
|
text: qsTr("RTL") |
|
|
|
|
visible: (_activeVehicle && _activeVehicle.armed) && _activeVehicle.guidedModeSupported && _activeVehicle.flying |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmHome) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
pointSize: ScreenTools.largeFontPointSize |
|
|
|
|
text: (_activeVehicle && _activeVehicle.flying) ? qsTr("Land"): qsTr("Takeoff") |
|
|
|
|
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_activeVehicle.flying ? _guidedModeBar.confirmLand : _guidedModeBar.confirmTakeoff) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
pointSize: ScreenTools.largeFontPointSize |
|
|
|
|
text: qsTr("Pause") |
|
|
|
|
visible: (_activeVehicle && _activeVehicle.armed) && _activeVehicle.pauseVehicleSupported && _activeVehicle.flying |
|
|
|
|
onClicked: { |
|
|
|
@ -472,6 +476,7 @@ Item {
@@ -472,6 +476,7 @@ Item {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCButton { |
|
|
|
|
pointSize: ScreenTools.largeFontPointSize |
|
|
|
|
text: qsTr("Change Altitude") |
|
|
|
|
visible: (_activeVehicle && _activeVehicle.flying) && _activeVehicle.guidedModeSupported && _activeVehicle.armed |
|
|
|
|
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmChangeAlt) |
|
|
|
@ -492,7 +497,7 @@ Item {
@@ -492,7 +497,7 @@ Item {
|
|
|
|
|
anchors.bottomMargin: _margins |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 3 |
|
|
|
|
height: _guidedModeBar.height |
|
|
|
|
visible: false |
|
|
|
|
z: QGroundControl.zOrderWidgets |
|
|
|
|
|
|
|
|
|