Hide error from CSM if it's uncalibrated

The error still appears in the console - should be fixed
eventually.
This commit is contained in:
Richard Bowman 2023-12-01 02:31:49 +00:00
parent a31c0aa835
commit f87594e7af
2 changed files with 9 additions and 11 deletions

View file

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