varenius / salsa

Code developed for the 2.3m radio telescopes SALSA in Onsala, Sweden
MIT License
16 stars 6 forks source link

Simple: Wrong figures in Distance to go #76

Closed maltesk closed 2 years ago

maltesk commented 2 years ago

Describe the bug The distance to go box sometimes shows the wrong figures.

To Reproduce Enter target and select GO. Shows TRACKING Select STOP to stop tracking ready for another target. "Distance to go" box shows a distance much bigger than zero, which must be wrong.

Expected behavior "Distance to go" box should show something close to zero.

Desktop (please complete the following information): Windows 10, Chrome 97.0.4692.99

varenius commented 2 years ago

This is a fun one. I think it has been there all the time, but we just happened to find it now given how the default targets are positioned on the sky.

SALSA can take two routes to a target. Either with altitude < 90 deg, and go around in az, OR moving less in az but going for altitude > 90 deg. I suspect that the distance calculator value uses one in the IDLE mode, and another in the tracking mode. Will check this.

varenius commented 2 years ago

Should be fixed by 11201bd.