So I am having issues figuring out why my drive is running in circles in auto when i use the drive fwd command I have a call out for it already
This is what it looks like:
void drivefwd(double revolutions, int speed){
RightGroup.rotateFor(revolutions ,rotationUnits:: rev, speed, velocityUnits:: pct);
LeftGroup.rotateFor(revolutions ,rotationUnits:: rev, speed, velocityUnits:: pct);
//When I try using making it drive forward it spins one side then the other it dosent do it at the same time to drive forward the rest of the code works as far as a shooter
wait(1,seconds);
drivefwd(5,80);
Shooter.setVelocity(100, percent);
Pusher.setVelocity(100,percent);
Shooter.spin(reverse);
wait(4,seconds);
Pusher.spin(reverse);
wait(1,seconds);
Pusher.spin(forward);
wait(1,seconds);
Pusher.spin(reverse);
wait(1,seconds);
Pusher.spin(forward);
wait(1,seconds);
Pusher.stop();
Shooter.stop();