Skip to content

Commit

Permalink
Fix typo on ATPtg.mounPositions topic.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Jan 21, 2025
1 parent 20c462b commit 8fa7b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion love/src/components/AuxTel/Dome/Dome.container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const mapDispatchToProps = (dispatch) => {
'telemetry-ATMCS-0-mount_Nasmyth_Encoders',
'telemetry-Scheduler-2-observatoryState',
'telemetry-ATPtg-0-mountStatus',
'telemetry-ATPtg-0-mountPosition',
'telemetry-ATPtg-0-mountPositions',
'event-ATDome-0-azimuthState',
'event-ATDome-0-azimuthCommandedState',
'event-ATDome-0-dropoutDoorState',
Expand Down
4 changes: 2 additions & 2 deletions love/src/redux/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,13 +766,13 @@ export const getATMCSState = (state) => {
export const getAuxiliaryTelescopeState = (state) => {
const subscriptions = [
'telemetry-ATPtg-0-mountStatus',
'telemetry-ATPtg-0-mountPosition',
'telemetry-ATPtg-0-mountPositions',
'event-ATPtg-0-currentTarget',
];
const data = getStreamsData(state, subscriptions);
return {
telescopeRAHour: data['telemetry-ATPtg-0-mountStatus']?.mountRA?.value ?? 0,
telescopeRADeg: data['telemetry-ATPtg-0-mountPosition']?.ra?.value ?? 0,
telescopeRADeg: data['telemetry-ATPtg-0-mountPositions']?.ra?.value[0] ?? 0,
telescopeDecDeg: data['telemetry-ATPtg-0-mountStatus']?.mountDec?.value ?? 0,
telescopeRotatorRad: data['telemetry-ATPtg-0-mountStatus']?.mountRot?.value ?? 0,
targetName: data['event-ATPtg-0-currentTarget']?.[0].targetName?.value ?? 'Unknown',
Expand Down

0 comments on commit 8fa7b52

Please sign in to comment.