Skip to content

Conversation

@themehdev
Copy link
Contributor

Removes a while loop using math to find the amount of iterations that the previously-while loop would take, and then multiplying that by the distance of one rotation.

@themehdev
Copy link
Contributor Author

whoops: I do not have the latest WPILIB installed. The message went into my spam folder for some reason.

@sjcbulldog
Copy link
Contributor

We will look at this after the season. The EncoderMapper has worked for some time so I am not going to change it now based on a very small performance improvement. It is the right longer term thing to do, but not the week before an event.

@themehdev
Copy link
Contributor Author

Ok. I realized the problem when I was getting long robot loops becasue I initialized an encoder wrong, but it still shouldn't have happened. I wrote this when we were doing the student code base last year, and tested it out.

@themehdev themehdev closed this Mar 12, 2025
@themehdev themehdev reopened this Mar 12, 2025
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