Skip to content

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.

3 participants