Skip to content

Commit

Permalink
Merge pull request #62 from simonsobs/acu-corot-fixes
Browse files Browse the repository at this point in the history
ACU: fix indicator lights for co-rotator on LAT
  • Loading branch information
mhasself authored Aug 7, 2024
2 parents 5df1e1e + 1232398 commit 18f0fa8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/panels/ACUAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@
key: 'Boresight computer disabled',
feature: 'boresight'},
{name: 'CR Sum',
key: 'Corotator summary fault',
key: 'Co-Rotator summary fault',
feature: 'corotator'},
{name: 'CR Comp',
key: 'Corotator computer disabled',
key: 'Co-Rotator computer disabled',
feature: 'corotator'},
],
panel: {},
Expand Down Expand Up @@ -680,7 +680,11 @@
let mon_running = mon.status == 'running';
// check staleness.
let detail = mon.data['StatusDetailed'];
let detail = {
...mon.data['StatusDetailed'],
...mon.data['Status3rdAxis'],
};
let mon_time = this.getTimestamp(detail);
let mon_stale = !mon_time || (
window.ocs_bundle.util.timestamp_now() - mon_time > mon_stale_time);
Expand Down Expand Up @@ -773,6 +777,7 @@
case 'Azimuth brakes released':
case 'Elevation brakes released':
case 'Boresight brakes released':
case 'Co-Rotator brakes released':
d.props.type = 'indicator';
break;
Expand All @@ -797,6 +802,7 @@
case 'Azimuth mode':
case 'Elevation mode':
case 'Boresight mode':
case 'Co-Rotator mode':
d.props.type = 'indicator';
test_val = (test_val != 'Stop')
break;
Expand All @@ -807,6 +813,8 @@
case 'Elevation power on':
case 'Boresight axis in stop':
case 'Boresight power on':
case 'Co-Rotator axis in stop':
case 'Co-Rotator power on':
case 'ACU in remote mode':
d.props.type = 'indicator';
d.props.inverted = true;
Expand Down

0 comments on commit 18f0fa8

Please sign in to comment.