Add camera calibration steps into refactored calibration wizard.

This commit is contained in:
Julian Stirling 2025-10-22 22:45:19 +01:00
parent 8f1253ec02
commit 0ebc507eff
10 changed files with 186 additions and 32 deletions

View file

@ -22,6 +22,8 @@
<script>
import singleStepTask from "./calibrationWizardComponents/singleStepTask.vue";
import welcomeStep from "./calibrationWizardComponents/welcomeStep.vue";
import cameraCalibrationTask from "./calibrationWizardComponents/cameraCalibrationTask.vue";
import finalStep from "./calibrationWizardComponents/finalStep.vue";
export default {
name: "calibrationWizard",
@ -60,6 +62,8 @@ export default {
this.calibrateableThings = thingsToCheck.filter(name => this.thingAvailable(name));
this.tasks = [
{component: singleStepTask, props: {stepComponent: welcomeStep}},
{component: cameraCalibrationTask},
{component: singleStepTask, props: {stepComponent: finalStep}},
]
},
@ -98,7 +102,7 @@ export default {
},
show_if_needed: async function() {
// Check if the camera and stage are calibrated, if they can be
// Check if the calibration modal is needed, and only show it if it is.
let needed = await this.check_if_needed()
// Check if this calibration wizard can actually do anything useful
@ -117,7 +121,6 @@ export default {
this.show();
},
show: function() {
// Show the modal element
var el = this.$refs["calibrationModalEl"];