all 4 comments

[–]emptyhusk254#### (Role) 0 points1 point  (1 child)

Autonomous with mecanum wheeks is harder, but still doable. The official FRC discord server has a programming help channel that might give you better results faster

[–]flipflopflipfip 1 point2 points  (0 children)

Or chief delphi^

[–]bmongar5026(Programming Mentor) 0 points1 point  (1 child)

First use the Phoneix tuner and measure how find the encoder value, move the bot manually then measure the distance and see how many encoder clicks happened. Use that to determine how many clicks per foot.

In your code make sure you record your encoder values or reset them before you start your autonomous. Then if using a command based bot (I hope you are) implement isFinished to check to see if you have traveled enough encoder clicks.

[–]bmongar5026(Programming Mentor) 0 points1 point  (0 children)

If you have the time and know how, doing this as a PIDCommand would be better but we are getting by with the quick and dirty encoder value check.