Skip to content

Conversation

@nicost
Copy link
Member

@nicost nicost commented Dec 24, 2025

This is undoing commit d1962c6 which I made myself in 2011.
Getting this callback automatically, even when the stage is not anywhere near the desired position has become annoying and confusing.

Closes #806. Will open another PR for the addition of a function to report whether or not the stage uses callbacks.

… the XY stage positions. This is undoing commit d1962c6

which I made myself in 2011.  Getting this callback automatically,
even when the stage is not anywhere near the desired position has
become annoying and confusing.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes automatic OnXYStagePositionChanged callbacks that were triggered when setting XY stage positions, reverting behavior from a 2011 commit. The change addresses confusion caused by callbacks firing before the stage reaches its target position.

  • Removes automatic position callbacks from SetPositionUm and SetRelativePositionUm methods
  • Eliminates internal tracking of xPos_ and yPos_ member variables when setting positions
  • Simplifies position-setting methods to directly return results without intermediate state updates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…caching ox x and y positions for that purpose, but remove OnXYSTagePositionChanged callbacks.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nicost nicost marked this pull request as ready for review December 24, 2025 22:42
@nicost nicost requested a review from marktsuchida December 24, 2025 22:42
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.

Confusing callback from CXYStageBase

1 participant