Unverified Commit 44bda371 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8124 from DonLakeFlyer/LaunchNaming

Launch naming
parents b7deac60 a9935798
...@@ -80,7 +80,7 @@ Item { ...@@ -80,7 +80,7 @@ Item {
readonly property string mrLoiterModeDescription: qsTr("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: qsTr("Return") readonly property string returnModeName: qsTr("Return")
readonly property string returnModeDescription: qsTr("The vehicle returns to the home position, loiters and then lands. ") readonly property string returnModeDescription: qsTr("The vehicle returns to the launch position, loiters and then lands. ")
readonly property string offboardModeName: qsTr("Offboard") readonly property string offboardModeName: qsTr("Offboard")
readonly property string offboardModeDescription: qsTr("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.")
......
...@@ -410,7 +410,7 @@ SetupPage { ...@@ -410,7 +410,7 @@ SetupPage {
} }
QGCLabel { QGCLabel {
text: qsTr("Return Home Settings") text: qsTr("Return To Launch Settings")
} }
Rectangle { Rectangle {
...@@ -449,7 +449,7 @@ SetupPage { ...@@ -449,7 +449,7 @@ SetupPage {
} }
QGCLabel { QGCLabel {
text: qsTr("Return home, then:") text: qsTr("Return to launch, then:")
Layout.columnSpan: 2 Layout.columnSpan: 2
} }
Row { Row {
......
...@@ -60,7 +60,7 @@ Item { ...@@ -60,7 +60,7 @@ Item {
readonly property string continueMissionMessage: qsTr("Continue the mission from the current waypoint.") readonly property string continueMissionMessage: qsTr("Continue the mission from the current waypoint.")
readonly property string resumeMissionUploadFailMessage: qsTr("Upload of resume mission failed. Confirm to retry upload") readonly property string resumeMissionUploadFailMessage: qsTr("Upload of resume mission failed. Confirm to retry upload")
readonly property string landMessage: qsTr("Land the vehicle at the current position.") readonly property string landMessage: qsTr("Land the vehicle at the current position.")
readonly property string rtlMessage: qsTr("Return to the home position of the vehicle.") readonly property string rtlMessage: qsTr("Return to the launch position of the vehicle.")
readonly property string changeAltMessage: qsTr("Change the altitude of the vehicle up or down.") readonly property string changeAltMessage: qsTr("Change the altitude of the vehicle up or down.")
readonly property string gotoMessage: qsTr("Move the vehicle to the specified location.") readonly property string gotoMessage: qsTr("Move the vehicle to the specified location.")
property string setWaypointMessage: qsTr("Adjust current waypoint to %1.").arg(_actionData) property string setWaypointMessage: qsTr("Adjust current waypoint to %1.").arg(_actionData)
......
...@@ -186,7 +186,7 @@ DropButton { ...@@ -186,7 +186,7 @@ DropButton {
} }
QGCButton { QGCButton {
text: qsTr("Home") text: qsTr("Launch")
Layout.fillWidth: true Layout.fillWidth: true
enabled: !followVehicleCheckBox.checked enabled: !followVehicleCheckBox.checked
......
...@@ -51,7 +51,7 @@ ColumnLayout { ...@@ -51,7 +51,7 @@ ColumnLayout {
} }
QGCButton { QGCButton {
text: qsTr("Home") text: qsTr("Launch")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: { onClicked: {
......
...@@ -138,8 +138,8 @@ ...@@ -138,8 +138,8 @@
{ {
"id": 20, "id": 20,
"rawName": "MAV_CMD_NAV_RETURN_TO_LAUNCH", "rawName": "MAV_CMD_NAV_RETURN_TO_LAUNCH",
"friendlyName": "Return Home", "friendlyName": "Return To Launch",
"description": "Send the vehicle back to the home position.", "description": "Send the vehicle back to the launch position.",
"friendlyEdit": true, "friendlyEdit": true,
"category": "Basic" "category": "Basic"
}, },
...@@ -501,8 +501,8 @@ ...@@ -501,8 +501,8 @@
{ {
"id": 179, "id": 179,
"rawName": "MAV_CMD_DO_SET_HOME", "rawName": "MAV_CMD_DO_SET_HOME",
"friendlyName": "Set home location", "friendlyName": "Set launch location",
"description": "Changes the home location either to the current location or a specified location.", "description": "Changes the launch location either to the current location or a specified location.",
"specifiesCoordinate": true, "specifiesCoordinate": true,
"standaloneCoordinate": true, "standaloneCoordinate": true,
"friendlyEdit": true, "friendlyEdit": true,
...@@ -983,7 +983,7 @@ ...@@ -983,7 +983,7 @@
{ "id": 252, "rawName": "MAV_CMD_OVERRIDE_GOTO", "friendlyName": "Override goto" }, { "id": 252, "rawName": "MAV_CMD_OVERRIDE_GOTO", "friendlyName": "Override goto" },
{ "id": 300, "rawName": "MAV_CMD_MISSION_START", "friendlyName": "Mission start" }, { "id": 300, "rawName": "MAV_CMD_MISSION_START", "friendlyName": "Mission start" },
{ "id": 400, "rawName": "MAV_CMD_COMPONENT_ARM_DISARM", "friendlyName": "Arm/Disarm" }, { "id": 400, "rawName": "MAV_CMD_COMPONENT_ARM_DISARM", "friendlyName": "Arm/Disarm" },
{ "id": 410, "rawName": "MAV_CMD_GET_HOME_POSITION", "friendlyName": "Get home position" }, { "id": 410, "rawName": "MAV_CMD_GET_HOME_POSITION", "friendlyName": "Get launch position" },
{ "id": 500, "rawName": "MAV_CMD_START_RX_PAIR", "friendlyName": "Bind Spektrum receiver" }, { "id": 500, "rawName": "MAV_CMD_START_RX_PAIR", "friendlyName": "Bind Spektrum receiver" },
{ "id": 510, "rawName": "MAV_CMD_GET_MESSAGE_INTERVAL", "friendlyName": "Get message interval" }, { "id": 510, "rawName": "MAV_CMD_GET_MESSAGE_INTERVAL", "friendlyName": "Get message interval" },
{ "id": 511, "rawName": "MAV_CMD_SET_MESSAGE_INTERVAL", "friendlyName": "Set message interval" }, { "id": 511, "rawName": "MAV_CMD_SET_MESSAGE_INTERVAL", "friendlyName": "Set message interval" },
......
[ [
{ {
"name": "PlannedHomePositionAltitude", "name": "PlannedHomePositionAltitude",
"shortDescription": "Planned home position altitude", "shortDescription": "Launch position altitude",
"type": "double", "type": "double",
"units": "m", "units": "m",
"decimalPlaces": 1, "decimalPlaces": 1,
......
...@@ -282,7 +282,7 @@ void MissionSettingsItem::_setHomeAltFromTerrain(double terrainAltitude) ...@@ -282,7 +282,7 @@ void MissionSettingsItem::_setHomeAltFromTerrain(double terrainAltitude)
QString MissionSettingsItem::abbreviation(void) const QString MissionSettingsItem::abbreviation(void) const
{ {
return _flyView ? tr("H") : tr("Launch"); return _flyView ? tr("L") : tr("Launch");
} }
void MissionSettingsItem::_updateHomePosition(const QGeoCoordinate& homePosition) void MissionSettingsItem::_updateHomePosition(const QGeoCoordinate& homePosition)
......
...@@ -387,7 +387,7 @@ QString SimpleMissionItem::commandName(void) const ...@@ -387,7 +387,7 @@ QString SimpleMissionItem::commandName(void) const
QString SimpleMissionItem::abbreviation() const QString SimpleMissionItem::abbreviation() const
{ {
if (homePosition()) if (homePosition())
return tr("H"); return tr("L");
switch(command()) { switch(command()) {
case MAV_CMD_NAV_TAKEOFF: case MAV_CMD_NAV_TAKEOFF:
......
...@@ -178,7 +178,7 @@ Rectangle { ...@@ -178,7 +178,7 @@ Rectangle {
QGCCheckBox { QGCCheckBox {
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Altitudes relative to home") text: qsTr("Altitudes relative to launch")
checked: missionItem.altitudesAreRelative checked: missionItem.altitudesAreRelative
visible: QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || !missionItem.altitudesAreRelative visible: QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || !missionItem.altitudesAreRelative
onClicked: missionItem.altitudesAreRelative = checked onClicked: missionItem.altitudesAreRelative = checked
......
...@@ -177,7 +177,7 @@ Rectangle { ...@@ -177,7 +177,7 @@ Rectangle {
id: plannedHomePositionSection id: plannedHomePositionSection
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
text: qsTr("Planned Home Position") text: qsTr("Launch Position")
visible: !_vehicleHasHomePosition visible: !_vehicleHasHomePosition
checked: false checked: false
} }
...@@ -213,7 +213,7 @@ Rectangle { ...@@ -213,7 +213,7 @@ Rectangle {
} }
QGCButton { QGCButton {
text: qsTr("Set Home To Map Center") text: qsTr("Set To Map Center")
onClicked: missionItem.coordinate = map.center onClicked: missionItem.coordinate = map.center
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
......
...@@ -21,7 +21,7 @@ Rectangle { ...@@ -21,7 +21,7 @@ Rectangle {
property real _margin: ScreenTools.defaultFontPixelHeight / 2 property real _margin: ScreenTools.defaultFontPixelHeight / 2
property bool _supportsTerrainFrame: missionItem property bool _supportsTerrainFrame: missionItem
property string _altModeRelativeHelpText: qsTr("Altitude relative to home altitude") property string _altModeRelativeHelpText: qsTr("Altitude relative to launch altitude")
property string _altModeAbsoluteHelpText: qsTr("Altitude above mean sea level") property string _altModeAbsoluteHelpText: qsTr("Altitude above mean sea level")
property string _altModeAboveTerrainHelpText: qsTr("Altitude above terrain\nActual AMSL altitude: %1 %2").arg(missionItem.amslAltAboveTerrain.valueString).arg(missionItem.amslAltAboveTerrain.units) property string _altModeAboveTerrainHelpText: qsTr("Altitude above terrain\nActual AMSL altitude: %1 %2").arg(missionItem.amslAltAboveTerrain.valueString).arg(missionItem.amslAltAboveTerrain.units)
property string _altModeTerrainFrameHelpText: qsTr("Using terrain reference frame") property string _altModeTerrainFrameHelpText: qsTr("Using terrain reference frame")
...@@ -188,7 +188,7 @@ Rectangle { ...@@ -188,7 +188,7 @@ Rectangle {
id: altHamburgerMenu id: altHamburgerMenu
QGCMenuItem { QGCMenuItem {
text: qsTr("Altitude Relative To Home") text: qsTr("Altitude Relative To Launch")
checkable: true checkable: true
checked: missionItem.altitudeMode === QGroundControl.AltitudeModeRelative checked: missionItem.altitudeMode === QGroundControl.AltitudeModeRelative
onTriggered: missionItem.altitudeMode = QGroundControl.AltitudeModeRelative onTriggered: missionItem.altitudeMode = QGroundControl.AltitudeModeRelative
......
...@@ -19,7 +19,7 @@ Rectangle { ...@@ -19,7 +19,7 @@ Rectangle {
id: _root id: _root
color: qgcPal.globalTheme === QGCPalette.Light ? QGroundControl.corePlugin.options.toolbarBackgroundLight : QGroundControl.corePlugin.options.toolbarBackgroundDark color: qgcPal.globalTheme === QGCPalette.Light ? QGroundControl.corePlugin.options.toolbarBackgroundLight : QGroundControl.corePlugin.options.toolbarBackgroundDark
width: _idealWidth < repeater.contentWidth ? repeater.contentWidth : _idealWidth width: _idealWidth < repeater.contentWidth ? repeater.contentWidth : _idealWidth
height: Math.min(maxHeight, toolStripColumn.height + (toolStripColumn.anchors.margins * 2)) height: Math.min(maxHeight, toolStripColumn.height + (flickable.anchors.margins * 2))
radius: ScreenTools.defaultFontPixelWidth / 2 radius: ScreenTools.defaultFontPixelWidth / 2
property alias model: repeater.model property alias model: repeater.model
...@@ -56,6 +56,7 @@ Rectangle { ...@@ -56,6 +56,7 @@ Rectangle {
} }
QGCFlickable { QGCFlickable {
id: flickable
anchors.margins: ScreenTools.defaultFontPixelWidth * 0.4 anchors.margins: ScreenTools.defaultFontPixelWidth * 0.4
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
......
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