Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve rotation control #3

Merged
merged 3 commits into from Nov 25, 2022
Merged

Improve rotation control #3

merged 3 commits into from Nov 25, 2022

Conversation

danielwbn
Copy link

These commits allow a more predictable rotation control.

stage.shift_angle(-5) rotates the stage by 5° ccw

stage.set_angle(355), stage.set_angle(365) work as intended, i.e., shift bu an additional 10° cw instead of 350° ccw

Sorry about the white space changes, those were made automatically by my IDE without me noticing

Daniel Heinrich added 3 commits November 25, 2022 13:44
It allows to make a relative rotation in the negative direction
Allows to use Controller in a with statement
With the modulo, the rotation stages moves -350° instead of 10° when going from 355° to 365°.
@roesel roesel merged commit d31f13b into roesel:main Nov 25, 2022
@roesel
Copy link
Owner

roesel commented Nov 25, 2022

These seem like useful changes. Thank you for your contribution!

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.

None yet

2 participants