You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
import QtQuick 2.3 |
|
import QtQuick.Controls 1.2 |
|
|
|
import QGroundControl.FactSystem 1.0 |
|
import QGroundControl.FactControls 1.0 |
|
import QGroundControl.Controls 1.0 |
|
import QGroundControl.Palette 1.0 |
|
|
|
Item { |
|
anchors.fill: parent |
|
|
|
FactPanelController { id: controller; } |
|
|
|
property Fact _mountRCInTilt: controller.getParameterFact(-1, "MNT_RC_IN_TILT") |
|
property Fact _mountRCInRoll: controller.getParameterFact(-1, "MNT_RC_IN_ROLL") |
|
property Fact _mountRCInPan: controller.getParameterFact(-1, "MNT_RC_IN_PAN") |
|
|
|
// MNT_TYPE parameter is not in older firmware versions |
|
property bool _mountTypeExists: controller.parameterExists(-1, "MNT_TYPE") |
|
property string _mountTypeValue: _mountTypeExists ? controller.getParameterFact(-1, "MNT_TYPE").enumStringValue : "" |
|
|
|
Column { |
|
anchors.fill: parent |
|
|
|
VehicleSummaryRow { |
|
visible: _mountTypeExists |
|
labelText: qsTr("Gimbal type") |
|
valueText: _mountTypeValue |
|
} |
|
|
|
VehicleSummaryRow { |
|
labelText: qsTr("Tilt input channel") |
|
valueText: _mountRCInTilt.enumStringValue |
|
} |
|
|
|
VehicleSummaryRow { |
|
labelText: qsTr("Pan input channel") |
|
valueText: _mountRCInPan.enumStringValue |
|
} |
|
|
|
VehicleSummaryRow { |
|
labelText: qsTr("Roll input channel") |
|
valueText: _mountRCInRoll.enumStringValue |
|
} |
|
} |
|
}
|
|
|