OpenAstroTech / OpenAstroTracker-Desktop

Software related to the OAT used in Desktop environments
29 stars 12 forks source link

Fix southern hemisphere latitude parsing #24

Closed trishmapow closed 3 years ago

trishmapow commented 3 years ago

Subtract the minutes if the degrees are negative, otherwise southern latitudes will keep increasing every time the OAT is connected.

trishmapow commented 3 years ago

I just noticed the same issue exists with OnSyncToTarget(), and also OnSlewToTarget(), which explains the strange behaviour I noticed a long time ago.

trishmapow commented 3 years ago

I think I'll close this and make a new PR that fixes all the negative issues, I just realised it's easier to do this with abs()!