Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Just a helpful tip #1

Open
realitii opened this issue Mar 7, 2019 · 1 comment
Open

Just a helpful tip #1

realitii opened this issue Mar 7, 2019 · 1 comment

Comments

@realitii
Copy link

realitii commented Mar 7, 2019

In the drivetrain subsystem (Drivetrain.java), you determine whether an encoder based movement is finished with the toPosition() method on line 165. Instead of establishing that the difference in counts is equal to zero, you should evaluate to where the difference is less than epsilon, where epsilon is an arbitrarily small number.

Otherwise your Encoder auto will never terminate :)

@realitii
Copy link
Author

realitii commented Mar 7, 2019

The yeet auto is absolutely hilarious by the way. I love it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant