You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Report the mount's pointing state (side of pier) over LX200 #330
Clients currently have to work out which side of the pier the mount is on themselves. The ASCOM driver used the hour angle, which turns East at the meridian even though the mount only flips during a slew (#282). The driver fix (OpenAstroTech/OpenAstroTracker-Desktop#78) now uses the sign of the DEC stepper position from :GX#. That works with current firmware, but it ties every client to firmware internals, and it's slightly wrong near the pole after a sync.
Proposal: a pier-side query that returns the firmware's own flip state:
:Gm# returns E# when flipped, W# when not flipped, or N# at the pole/home. OnStep uses the same command and replies, so existing LX200 clients may already understand it; this needs checking against OnStep's docs.
Computed from degreePos = steps / stepsPerDECDegree + _zeroPosDEC, the same test the firmware uses in currentRA(), syncPosition() and checkRALimit(). Unlike the raw step sign, this stays correct after a :CM sync near the pole.
East/West follow the ASCOM pointing-state convention: pierEast is the state with the scope on the east side of the mount, looking west with counterweights down.
The bench (OAE, both hemispheres): unflipped means DEC steps > 0, which is pierWest.
Then:
The ASCOM driver prefers :Gm# and keeps the :GX# DEC sign as fallback for older firmware.
INDI, OATControl and other LX200 clients can use the same command.
DestinationSideOfPier follows from :XGC, once the southern-hemisphere :XGC fix is merged.
Note for OAT (not OAM/OAE): the OAT doesn't flip at the meridian. With a correct pier side, N.I.N.A.'s meridian flip will retry a flip the OAT never does, so OAT users should leave it out of their sequences.
Activity