flywheel.spinFor(forward, 25, turns);
flywheel.spinFor(forward, 15, turns, false);
wait(1, msec);
shooterthing.set(false);
wait(1, msec);
flywheel.spinFor(forward, 5, turns, false);
wait(1, msec);
shooterthing.set(true);
wait(1, msec);
flywheel.spinFor(forward, 5, turns, false);
wait(1, msec);
shooterthing.set(false);
wait(1, msec);
flywheel.spinFor(forward, 5, turns, false);
wait(1, msec);
shooterthing.set(true);
wait(1, msec);
flywheel.spinFor(forward, 5, turns, false);
wait(1, msec);
shooterthing.set(false);
wait(1, msec);
Does anyone know why this code shoots so badly in autonomous?
It shoots about 2 inches, not near far or high enough to make a goal, and it goes very slowly (shooterthing is the indexer)
Also, the indexer will go up at (false) but doesn’t go down at (true) unless I make it wait and/or it will take absolutely forever.
Even with the wait thing, the indexer takes forever to go back down and back up.
Also, adding false to the end of a motor spin/drive makes it so that it doesn’t wait to start the next function (as in, it launches the indexer WHILE it is spinning the flywheel?)