Skip to content

Improve mount control, ASCOM error handling and alignment mapping - #144

Closed
kvandebeek wants to merge 2 commits into
rmorgan001:masterfrom
kvandebeek:fix/mount-and-alignment-corrections
Closed

kvandebeek wants to merge 2 commits into
rmorgan001:masterfrom
kvandebeek:fix/mount-and-alignment-corrections

Conversation

@kvandebeek

Copy link
Copy Markdown

Problem

Several alignment and mount-control paths can select the wrong correction, report success when motion or serial operations fail, or leave a caller waiting indefinitely. This change proposes corrections across the alignment, SkyWatcher and ASCOM paths; see #143 for the maintainer discussion.

Changes

  • Select alignment points and triangles in the input coordinate space, use consistent nearest-point correction directions, reject poorly conditioned triangles, update the three-point state after point replacement, and preserve corrections at zero polar radius. Add alignment regression tests.
  • Prevent pulse cleanup from overriding newer axis motion; surface pulse-dispatch and serial failures; bound position-update, sync and GoTo waits; and report failed slews and parks.
  • Serialize relevant queue and connection transitions, distinguish serial recovery from disconnect, track ASCOM connection state per client, and validate client operations and targets.
  • Correct GPS parsing and elevation handling, plotting units and settings parsing; stop the mount on abnormal server exit; add solution build and test steps to CI.
  • Bump the local build and installer version to 1.2.3.5. The release version can be adjusted to match the project's release process.

Some changes intentionally affect client-visible behavior: for example, motion commands require the calling client to be connected, disabled ASCOM commands fail instead of silently succeeding, and pulse guiding is rejected during a GoTo. Feedback on compatibility, the triangle-conditioning threshold, and whether to split this contribution would be welcome.

Validation

  • Windows / .NET Framework 4.8.1: Release solution restore and build succeeded.
  • Six focused alignment regression tests passed against the proposed contribution.
  • The earlier motion changes were exercised in a separate fake-serial verification harness, which is not included in this PR; these checks do not cover the entire ASCOM/WPF/queue path.
  • ASCOM Conform, simulator scenarios, and physical-mount tests have not yet been run for this PR. This remains a draft pending maintainer feedback and further validation.

@rmorgan001

Copy link
Copy Markdown
Owner

Andy and I would be happy to discuss any changes you might want on the support site first. https://groups.io/g/GSS/topics

--Rob

@rmorgan001 rmorgan001 closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants