Added an option to do fast autofocus in scan mode
This commit is contained in:
parent
3579fe32ea
commit
86c7260061
1 changed files with 6 additions and 3 deletions
|
|
@ -149,6 +149,7 @@
|
||||||
<option>Coarse</option>
|
<option>Coarse</option>
|
||||||
<option>Medium</option>
|
<option>Medium</option>
|
||||||
<option>Fine</option>
|
<option>Fine</option>
|
||||||
|
<option>Fast</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -260,10 +261,12 @@ export default {
|
||||||
Off: 0,
|
Off: 0,
|
||||||
Coarse: 100,
|
Coarse: 100,
|
||||||
Medium: 30,
|
Medium: 30,
|
||||||
Fine: 10
|
Fine: 10,
|
||||||
|
Fast: 1500
|
||||||
}
|
}
|
||||||
|
|
||||||
payload.autofocus_dz = afDeltas[this.scanDeltaZ]
|
payload.autofocus_dz = afDeltas[this.scanDeltaZ]
|
||||||
|
payload.fast_autofocus = this.scanDeltaZ == "Fast"
|
||||||
|
|
||||||
// Do capture
|
// Do capture
|
||||||
this.newScanRequest(payload)
|
this.newScanRequest(payload)
|
||||||
|
|
@ -283,9 +286,9 @@ export default {
|
||||||
newScanRequest: function(params) {
|
newScanRequest: function(params) {
|
||||||
axios.post(this.scanApiUri, params)
|
axios.post(this.scanApiUri, params)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log("Task ID: " + response.data[0].id)
|
console.log("Task ID: " + response.data.id)
|
||||||
this.isScanning = true
|
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(() => {
|
.then(() => {
|
||||||
UIkit.notification({message: "Finished scan.", status: 'success'})
|
UIkit.notification({message: "Finished scan.", status: 'success'})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue