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

✨ Add Reverseable Motors to Default API #443

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

R11G
Copy link
Contributor

@R11G R11G commented Oct 12, 2022

Summary:

Change Motor constructors' port param from uint8_t to int8_t
Add functionality for users to input a negative port into Motor constructors to reverse motors at that port.

Test Plan:

See if motors spin in reverse after passing in a negative port parameter.

Changed Motor constructors' port param from uint8_t to int8_t
@R11G R11G linked an issue Oct 12, 2022 that may be closed by this pull request
@WillXuCodes
Copy link
Member

Could you also refractor this to motor groups as well? You can see what I mean if you go down to the motor group constructors.

Copy link
Contributor

@Richard-Stump Richard-Stump left a comment

Choose a reason for hiding this comment

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

Tested with both motors and motor groups. Motor groups were tested with various combinations of reversed and non-reversed motors and everything seems to work as expected.

@Richard-Stump Richard-Stump merged commit 4e6f841 into develop Oct 14, 2022
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.

PROS 3.7.2: Add Reversable Motors to Default API
3 participants