Commit a95b2c4a authored by Don Gagne's avatar Don Gagne

Camere trigger button for testing

parent a40c121c
...@@ -36,10 +36,10 @@ SetupPage { ...@@ -36,10 +36,10 @@ SetupPage {
property real _margins: ScreenTools.defaultFontPixelHeight property real _margins: ScreenTools.defaultFontPixelHeight
property real _editFieldWidth: ScreenTools.defaultFontPixelWidth * 25 property real _editFieldWidth: ScreenTools.defaultFontPixelWidth * 25
property Fact _camTriggerMode: controller.getParameterFact(-1, "TRIG_MODE") property Fact _camTriggerMode: controller.getParameterFact(-1, "TRIG_MODE")
property Fact _camTriggerInterface: controller.getParameterFact(-1, "TRIG_INTERFACE", false) property Fact _camTriggerInterface: controller.getParameterFact(-1, "TRIG_INTERFACE", false /* reportMissing */)
property Fact _camTriggerPol: controller.getParameterFact(-1, "TRIG_POLARITY", false) // Don't bitch about missing as these only exist if trigger mode is enabled property Fact _camTriggerPol: controller.getParameterFact(-1, "TRIG_POLARITY", false /* reportMissing */)
property Fact _auxPins: controller.getParameterFact(-1, "TRIG_PINS", false) // Ditto property Fact _auxPins: controller.getParameterFact(-1, "TRIG_PINS", false /* reportMissing */)
property bool _rebooting: false property bool _rebooting: false
property var _auxChannels: [ 0, 0, 0, 0, 0, 0] property var _auxChannels: [ 0, 0, 0, 0, 0, 0]
...@@ -154,26 +154,28 @@ SetupPage { ...@@ -154,26 +154,28 @@ SetupPage {
text: qsTr("Time Interval") text: qsTr("Time Interval")
anchors.baseline: timeIntervalField.baseline anchors.baseline: timeIntervalField.baseline
color: qgcPal.text color: qgcPal.text
visible: timeIntervalField.visible
} }
FactTextField { FactTextField {
id: timeIntervalField id: timeIntervalField
fact: controller.getParameterFact(-1, "TRIG_INTERVAL", false) fact: controller.getParameterFact(-1, "TRIG_INTERVAL", false)
showUnits: true showUnits: true
Layout.minimumWidth: _editFieldWidth Layout.minimumWidth: _editFieldWidth
enabled: _camTriggerMode.value === 2 visible: _camTriggerMode.value === 2
} }
QGCLabel { QGCLabel {
text: qsTr("Distance Interval") text: qsTr("Distance Interval")
anchors.baseline: trigDistField.baseline anchors.baseline: trigDistField.baseline
color: qgcPal.text color: qgcPal.text
visible: trigDistField.visible
} }
FactTextField { FactTextField {
id: trigDistField id: trigDistField
fact: controller.getParameterFact(-1, "TRIG_DISTANCE", false) fact: controller.getParameterFact(-1, "TRIG_DISTANCE", false)
showUnits: true showUnits: true
Layout.minimumWidth: _editFieldWidth Layout.minimumWidth: _editFieldWidth
enabled: _camTriggerMode.value === 3 visible: _camTriggerMode.value === 3
} }
} }
} // QGCGroupBox - Camera Trigger } // QGCGroupBox - Camera Trigger
...@@ -298,6 +300,17 @@ SetupPage { ...@@ -298,6 +300,17 @@ SetupPage {
} }
} }
} }
} // QGCGroupBox - Hardware Settings
QGCGroupBox {
title: qsTr("Camera Test")
Layout.fillWidth: true
QGCButton {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Trigger Camera")
onClicked: controller.vehicle.triggerCamera()
}
} }
} }
} }
......
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