Skip to content

Commit

Permalink
Connect missing parameters for limits displayed on DomeSummaryTable
Browse files Browse the repository at this point in the history
Also remove abs casting on Nasmyth rotator positions
  • Loading branch information
sebastian-aranda committed Aug 23, 2024
1 parent 6a3d341 commit 8c0d0b0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 36 deletions.
16 changes: 16 additions & 0 deletions love/src/components/AuxTel/Dome/Dome.container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ const DomeContainer = ({
m3State,
minEl,
maxEl,
minAz,
maxAz,
minNas1,
maxNas1,
minNas2,
maxNas2,
minM3,
maxM3,
timeAzLim,
timeRotLim,
timeUnobservable,
Expand Down Expand Up @@ -123,6 +131,14 @@ const DomeContainer = ({
m3State={m3State}
minEl={minEl}
maxEl={maxEl}
minAz={minAz}
maxAz={maxAz}
minNas1={minNas1}
maxNas1={maxNas1}
minNas2={minNas2}
maxNas2={maxNas2}
minM3={minM3}
maxM3={maxM3}
timeAzLim={timeAzLim}
timeRotLim={timeRotLim}
timeUnobservable={timeUnobservable}
Expand Down
16 changes: 2 additions & 14 deletions love/src/components/AuxTel/Dome/Dome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,12 @@ export default class Dome extends Component {
targetNasmyth2: PropTypes.number,
/** M3 state */
m3State: PropTypes.string,
/** Min elevation */
minEl: PropTypes.number,
/** Min azimuth */
minAz: PropTypes.number,
/** Min nasmyth1 */
minNas1: PropTypes.number,
/** Min nasmyth2 */
minNas2: PropTypes.number,
/** Min M3 */
minM3: PropTypes.number,
/** Max elevation */
maxEl: PropTypes.number,
/** Max azimuth */
maxAz: PropTypes.number,
/** Max nasmyth1 */
maxNas1: PropTypes.number,
/** Max nasmyth2 */
Expand Down Expand Up @@ -292,13 +284,9 @@ export default class Dome extends Component {
targetNasmyth1,
targetNasmyth2,
m3State,
// minEl,
minAz,
minNas1,
minNas2,
minM3,
// maxEl,
maxAz,
maxNas1,
maxNas2,
maxM3,
Expand Down Expand Up @@ -459,12 +447,12 @@ export default class Dome extends Component {
timeUnobservable={timeUnobservable}
timeElHighLimit={timeElHighLimit}
maxEl={85}
maxAz={maxAz}
maxAz={360}
maxNas1={maxNas1}
maxNas2={maxNas2}
maxM3={maxM3}
minEl={5}
minAz={minAz}
minAz={0}
minNas1={minNas1}
minNas2={minNas2}
minM3={minM3}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,10 @@ export default class DomeSummaryTable extends Component {
maxAz,
maxNas1,
maxNas2,
maxM3,
minEl,
minAz,
minNas1,
minNas2,
minM3,
atDomeSummaryState,
ATMCSSummaryState,
domeTracking,
Expand All @@ -127,15 +125,15 @@ export default class DomeSummaryTable extends Component {
m3State === 1
? {
name: '(1)',
current: Math.abs(currentPointing.nasmyth1),
target: Math.abs(targetPointing.nasmyth1),
current: currentPointing.nasmyth1,
target: targetPointing.nasmyth1,
minRot: minNas1,
maxRot: maxNas1,
}
: {
name: '(2)',
current: Math.abs(currentPointing.nasmyth2),
target: Math.abs(targetPointing.nasmyth2),
current: currentPointing.nasmyth2,
target: targetPointing.nasmyth2,
minRot: minNas2,
maxRot: maxNas2,
};
Expand Down Expand Up @@ -196,22 +194,6 @@ export default class DomeSummaryTable extends Component {
<Value>
<CurrentTargetValue currentValue={domeAz.current} targetValue={domeAz.target} isChanging={true} />
</Value>
{/* <span className={[styles.subRow, styles.wide].join(' ')} title={`Time to limit: ${2} min`}>
<span>
<Limits
lowerLimit={0}
upperLimit={360}
currentValue={domeAz.current}
targetValue={domeAz.target}
height={30}
displayLabels={false}
/>
</span>
<span>
<span>Time to limit: </span>
<span className={styles.highlight}>2 min</span>
</span>
</span> */}
{/* Mount */}
<Title>ATMCS CSC</Title>
<Value>
Expand Down

0 comments on commit 8c0d0b0

Please sign in to comment.