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

✨Negative port values for Rotation class #595

Merged

Conversation

R11G
Copy link
Contributor

@R11G R11G commented Aug 31, 2023

Summary:

Changed unsigned port parameter in Rotation constructor to signed
Allow for negative port values to reverse their positive port

Motivation:

Generalize negative port = reverse functionality for more classes

References:

#588

Test Plan:

Ensure rotation sensor is reversed when a negative port is input, regardless of reverse_flag value.

src/devices/vdml_rotation.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@noam987 noam987 left a comment

Choose a reason for hiding this comment

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

LGTM. Will post on beta server for hardware testing

@noam987 noam987 merged commit b76d223 into develop-pros-4 Oct 5, 2023
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