From 45de8a02dbf918605526a3886784bae741a3a545 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 26 Jan 2025 19:15:00 +0100 Subject: add gain control, laser level (strobe span) control --- Main.qml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'Main.qml') diff --git a/Main.qml b/Main.qml index 606998f..7d26c9d 100644 --- a/Main.qml +++ b/Main.qml @@ -105,6 +105,7 @@ ApplicationWindow { json["aeEnable"] = enableAutoExposureCheckbox.checked; json["exposureTime"] = exposureTimeSpinBox.value; json["laserLevel"] = laserLevelSpinBox.value; + json["gain"] = gainSpinBox.value; console.log(JSON.stringify(json)); XHR.sendRequest("POST", url, function(response) { @@ -296,7 +297,7 @@ ApplicationWindow { Layout.fillWidth: true from: 10 - to: 30000 + to: 30000000 stepSize: 100 editable: true @@ -313,12 +314,30 @@ ApplicationWindow { Layout.fillWidth: true - from: 500 + from: 0 to: 50000 - stepSize: 250 + stepSize: 1 editable: true - value: 1500 + value: 3 + onValueChanged: writeParams() + } + + Label { + text: qsTr("Gain [1,254]:") + } + + SpinBox { + id: gainSpinBox + + Layout.fillWidth: true + + from: 0 + to: 254 + stepSize: 1 + editable: true + + value: 3 onValueChanged: writeParams() } -- cgit v1.2.3-70-g09d2