Error handling for CSM calibration check
This commit is contained in:
parent
5d87a7582e
commit
a31c0aa835
1 changed files with 9 additions and 5 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue