Browse Source

APMCameraSubComponent: support servo outputs up to 16

QGC4.4
Willian Galvani 3 years ago committed by Patrick José Pereira
parent
commit
48e1877506
  1. 8
      src/AutoPilotPlugins/APM/APMCameraSubComponent.qml

8
src/AutoPilotPlugins/APM/APMCameraSubComponent.qml

@ -70,6 +70,8 @@ SetupPage { @@ -70,6 +70,8 @@ SetupPage {
property Fact _rc12Function: controller.getParameterFact(-1, "r.SERVO12_FUNCTION")
property Fact _rc13Function: controller.getParameterFact(-1, "r.SERVO13_FUNCTION")
property Fact _rc14Function: controller.getParameterFact(-1, "r.SERVO14_FUNCTION")
property Fact _rc15Function: controller.getParameterFact(-1, "r.SERVO15_FUNCTION")
property Fact _rc16Function: controller.getParameterFact(-1, "r.SERVO16_FUNCTION")
// These enable/disable the options for setting up each axis
property bool _tiltEnabled: false
@ -87,7 +89,7 @@ SetupPage { @@ -87,7 +89,7 @@ SetupPage {
readonly property int _rcFunctionMountTilt: 7
readonly property int _rcFunctionMountRoll: 8
readonly property int _firstGimbalOutChannel: 5
readonly property int _lastGimbalOutChannel: 14
readonly property int _lastGimbalOutChannel: 16
readonly property int _mountDefaultModeRCTargetting: 3
Component.onCompleted: {
@ -161,6 +163,8 @@ SetupPage { @@ -161,6 +163,8 @@ SetupPage {
Connections { target: _rc12Function; onValueChanged: calcGimbalOutValues() }
Connections { target: _rc13Function; onValueChanged: calcGimbalOutValues() }
Connections { target: _rc14Function; onValueChanged: calcGimbalOutValues() }
Connections { target: _rc15Function; onValueChanged: calcGimbalOutValues() }
Connections { target: _rc16Function; onValueChanged: calcGimbalOutValues() }
// Whenever an MNT_RC_IN_* setting is changed make sure to turn on RC targeting
Connections {
@ -191,6 +195,8 @@ SetupPage { @@ -191,6 +195,8 @@ SetupPage {
ListElement { text: qsTr("Channel 12"); value: 12 }
ListElement { text: qsTr("Channel 13"); value: 13 }
ListElement { text: qsTr("Channel 14"); value: 14 }
ListElement { text: qsTr("Channel 15"); value: 15 }
ListElement { text: qsTr("Channel 16"); value: 16 }
}
QGCCheckBox {

Loading…
Cancel
Save