From 86c72600619288e8019fbbdf07fee1556121701b Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Mon, 8 Apr 2019 16:21:19 +0100 Subject: [PATCH] Added an option to do fast autofocus in scan mode --- src/components/paneCapture.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/paneCapture.vue b/src/components/paneCapture.vue index 08da2cc9..15c65b8f 100644 --- a/src/components/paneCapture.vue +++ b/src/components/paneCapture.vue @@ -149,6 +149,7 @@ + @@ -260,10 +261,12 @@ export default { Off: 0, Coarse: 100, Medium: 30, - Fine: 10 + Fine: 10, + Fast: 1500 } payload.autofocus_dz = afDeltas[this.scanDeltaZ] + payload.fast_autofocus = this.scanDeltaZ == "Fast" // Do capture this.newScanRequest(payload) @@ -283,9 +286,9 @@ export default { newScanRequest: function(params) { axios.post(this.scanApiUri, params) .then(response => { - console.log("Task ID: " + response.data[0].id) + console.log("Task ID: " + response.data.id) this.isScanning = true - return this.$store.dispatch('pollTask', [response.data[0].id, 3600, 5]) + return this.$store.dispatch('pollTask', [response.data.id, 3600, 5]) }) .then(() => { UIkit.notification({message: "Finished scan.", status: 'success'})