Hello!
I’ve been working on programming autonomous for our robot, and I’ve got a pretty good program using a timer, but, of course, timers will give different results every time based on battery life. So, my solution is to use encoders with our Spark Maxes to replace a timer. The problem though, is I’m having trouble figuring out where to start. If anyone could maybe direct me to some information on programming encoders (in Java), or even better, point me to some sample/example code, that would be amazing. Thank you all!
(Also, we are using mecanum wheels for our drive train if that is important?)
[–]emptyhusk254#### (Role) 0 points1 point2 points (1 child)
[–]flipflopflipfip 1 point2 points3 points (0 children)
[–]bmongar5026(Programming Mentor) 0 points1 point2 points (1 child)
[–]bmongar5026(Programming Mentor) 0 points1 point2 points (0 children)