One thing you can do is figure out which flywheel has more friction, then make that the “master” flywheel. It gets a control loop to reach a certain velocity. Then, the “slave” flywheel, the other one, gets a control loop to match its velocity to the master flywheel. The only difference is, instead of using
Well, C is what you’ll be using to maintain 0 error after the PID loop reaches 0 error. This is something you’ll have to tune on your own. Spend some quality time with the debugger window and robot to figure out what C needs to be in order to maintain 0 error.
You’ll set C just like any other variable by using an assignment operator “=”.
Alright, so it seems I’ve been able to figure it out without doing any other things, it’s been just messing around with variables, and we seem to have it pretty good, about 18/24 balls, which I’m happy with… Thanks guys for your help