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

User/berry/berry ctrl #179

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

User/berry/berry ctrl #179

wants to merge 3 commits into from

Conversation

Xoesis
Copy link

@Xoesis Xoesis commented Mar 15, 2024

Created an Enum for Encoder Index with encoder left and right with a 3rd enum as the total amount of encoders. Changed all 0, 1, and 2 that represented left encoder, right encoder, and total encoders with ENCODER_LEFT, ENCODER_RIGHT, ENCODERS_TOTAL. Replaced the straight forward delta calculation with a for loop. The if-else code that increased the encoder counts are replaced with ternary statements. The left encoder count is flipped and the right encoder count stayed the same.

@jcirce
Copy link
Contributor

jcirce commented May 25, 2024

@jacobkoziej should we merge this into user/jcirce/bbc-pidcontrolsetup first or no

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