diff --git a/qgroundcontrol.qrc b/qgroundcontrol.qrc index fb344ce8a932ce998ac6256a9ac3b1fe8034d56f..acb5248675c4dc559f1ae2ecec5e2f81ba56250f 100644 --- a/qgroundcontrol.qrc +++ b/qgroundcontrol.qrc @@ -20,7 +20,6 @@ src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml src/AutoPilotPlugins/APM/APMFlightModesComponent.qml src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml - src/ui/preferences/BluetoothSettings.qml src/ui/preferences/DebugWindow.qml src/ui/preferences/GeneralSettings.qml @@ -33,7 +32,6 @@ src/ui/preferences/SerialSettings.qml src/ui/preferences/TcpSettings.qml src/ui/preferences/UdpSettings.qml - src/VehicleSetup/JoystickConfig.qml src/ui/toolbar/MainToolBar.qml src/ui/MainWindowHybrid.qml @@ -44,7 +42,6 @@ src/AutoPilotPlugins/PX4/PowerComponent.qml src/AutoPilotPlugins/PX4/PowerComponentSummary.qml src/VehicleSetup/PX4FlowSensor.qml - src/QmlControls/QGroundControl.Controls.qmldir src/QmlControls/ClickableColor.qml src/QmlControls/DropButton.qml @@ -88,10 +85,8 @@ src/QmlControls/VehicleSummaryRow.qml src/QmlControls/AppMessages.qml src/ViewWidgets/ViewWidget.qml - src/MissionEditor/SimpleItemEditor.qml src/MissionEditor/SurveyItemEditor.qml - src/FactSystem/FactControls/FactBitmask.qml src/FactSystem/FactControls/FactCheckBox.qml src/FactSystem/FactControls/FactComboBox.qml @@ -99,14 +94,12 @@ src/FactSystem/FactControls/FactPanel.qml src/FactSystem/FactControls/FactTextField.qml src/FactSystem/FactControls/qmldir - src/FlightDisplay/qmldir src/FlightDisplay/FlightDisplayView.qml src/FlightDisplay/FlightDisplayViewMap.qml src/FlightDisplay/FlightDisplayViewVideo.qml src/FlightDisplay/FlightDisplayViewWidgets.qml src/FlightDisplay/VirtualJoystick.qml - src/FlightMap/qmldir src/FlightMap/FlightMap.qml src/FlightMap/MapItems/MissionItemIndicator.qml @@ -125,7 +118,6 @@ src/FlightMap/Widgets/VibrationWidget.qml src/FlightMap/MapItems/VehicleMapItem.qml src/FlightMap/Widgets/InstrumentSwipeView.qml - src/QmlControls/QGroundControl.ScreenTools.qmldir src/QmlControls/ScreenTools.qml src/QmlControls/QmlTest.qml @@ -162,6 +154,7 @@ src/test.qml src/VehicleSetup/VehicleSummary.qml src/QmlControls/OfflineMapButton.qml + src/AutoPilotPlugins/PX4/PX4TuningComponentVTOL.qml src/MissionManager/MavCmdInfoCommon.json diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponent.cc b/src/AutoPilotPlugins/PX4/PX4TuningComponent.cc index 75f07fa38c5708cece21fa1233072264aaf5602b..5d7f5d53b716824bd287636cbb9681a82e010ad9 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponent.cc +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponent.cc @@ -77,6 +77,15 @@ QUrl PX4TuningComponent::setupSource(void) const case MAV_TYPE_TRICOPTER: qmlFile = "qrc:/qml/PX4TuningComponentCopter.qml"; break; + case MAV_TYPE_VTOL_DUOROTOR: + case MAV_TYPE_VTOL_QUADROTOR: + case MAV_TYPE_VTOL_TILTROTOR: + case MAV_TYPE_VTOL_RESERVED2: + case MAV_TYPE_VTOL_RESERVED3: + case MAV_TYPE_VTOL_RESERVED4: + case MAV_TYPE_VTOL_RESERVED5: + qmlFile = "qrc:/qml/PX4TuningComponentVTOL.qml"; + break; default: break; } diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml b/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml index 16d4a07a1fa4e8b660053acaa4ed3eb9eea7a685..06ae6aa3bb40ebbfe429a94287b47dda1f0f0126 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml @@ -32,12 +32,21 @@ FactSliderPanel { sliderModel: ListModel { ListElement { - title: qsTr("Throttle Hover") + title: qsTr("Hover Throttle") 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 - step: 0.01 + min: 20 + max: 60 + step: 1 + } + + ListElement { + 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: 15 + step: 1 } ListElement { @@ -75,14 +84,5 @@ FactSliderPanel { max: 1.0 step: 0.1 } - - ListElement { - 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 - } } } diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml b/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml index dc9c26546aefa8fb6a5b401707702ab31abbea8c..85af9c5426ecb5370d18892edb498713d252f281 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml @@ -30,45 +30,9 @@ FactSliderPanel { anchors.fill: parent sliderModel: ListModel { - - ListElement { - 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 - step: 0.01 - } - - ListElement { - 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 - step: 0.01 - } - ListElement { - 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 - step: 0.1 - } - - ListElement { - 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: 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.") + 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." param: "FW_R_TC" min: 0.2 max: 0.8 @@ -76,8 +40,8 @@ FactSliderPanel { } ListElement { - 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.") + 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." param: "FW_P_TC" min: 0.2 max: 0.8 @@ -85,17 +49,17 @@ FactSliderPanel { } ListElement { - title: qsTr("Plane Cruise throttle") - description: qsTr("This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%.") + title: "Cruise throttle" + description: "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 - step: 0.01 + min: 20 + max: 80 + step: 1 } ListElement { - 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.") + title: "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." param: "FW_L1_PERIOD" min: 12 max: 50 diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponentVTOL.qml b/src/AutoPilotPlugins/PX4/PX4TuningComponentVTOL.qml index 9210cda8291f682b4986d26612d1d6fa7b4322ef..adf4c2137f11dabb5735de908648323dad46c7e6 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponentVTOL.qml +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponentVTOL.qml @@ -30,9 +30,45 @@ FactSliderPanel { anchors.fill: parent sliderModel: ListModel { + + ListElement { + 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 + step: 0.01 + } + + ListElement { + 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 + step: 0.01 + } + + ListElement { + 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 + step: 0.1 + } + 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("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: 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 @@ -40,8 +76,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("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 @@ -49,17 +85,35 @@ FactSliderPanel { } ListElement { - title: "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 - step: 0.01 + min: 20 + max: 80 + step: 1 + } + + ListElement { + title: qsTr("Hover Throttle") + 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: 20 + max: 60 + step: 1 + } + + ListElement { + title: qsTr("Hoever 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: 15 + step: 1 } ListElement { - title: "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 diff --git a/src/AutoPilotPlugins/PX4/SafetyComponent.qml b/src/AutoPilotPlugins/PX4/SafetyComponent.qml index 1a3e675b4d2eaa2f6e6ced023b23c7e97f0b348a..de8394b889b095c4c82372724d1727968b719ab3 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponent.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponent.qml @@ -60,16 +60,13 @@ QGCView { anchors.fill: parent QGCFlickable { clip: true - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - width: mainCol.width + anchors.fill: parent contentHeight: mainCol.height - contentWidth: mainCol.width flickableDirection: Flickable.VerticalFlick Column { id: mainCol spacing: _margins + anchors.horizontalCenter: parent.horizontalCenter /* **** Low Battery **** */ @@ -514,6 +511,7 @@ QGCView { } } } + Item { width: 1; height: _margins * 0.5; } } } }