Error handling for CSM calibration check

This commit is contained in:
Richard Bowman 2023-12-01 02:24:14 +00:00
parent 5d87a7582e
commit a31c0aa835

View file

@ -201,11 +201,15 @@ export default {
show: async function() { show: async function() {
// Check if the camera and stage are calibrated, if they can be // Check if the camera and stage are calibrated, if they can be
if (this.canCSMCalibrated) { if (this.canCSMCalibrated) {
let csm = this.readThingProperty( try {
"camera_stage_mapping", let csm = this.readThingProperty(
"image_to_stage_displacement_matrix" "camera_stage_mapping",
); "image_to_stage_displacement_matrix"
this.isCSMCalibrated = Boolean(csm); );
this.isCSMCalibrated = Boolean(csm);
} catch {
this.isCSMCalibrated = false;
}
} }
if (this.canLSTCalibrated) { if (this.canLSTCalibrated) {
this.isLSTCalibrated = this.readThingProperty( this.isLSTCalibrated = this.readThingProperty(