Quote:
Originally Posted by Zer0
Hey maybe this can be some help.
public void autonomousPeriodic()
{
ShooterFront.set(50);
ShooterBack.set(50);
Timer.delay(3.0);
servo.setAngle(90);
Timer.delay(3.0);
servo.setAngle(180);
Timer.delay(3.0);
servo.setAngle(90);
Timer.delay(3.0);
servo.setAngle(180);
Timer.delay(3.0);
servo.setAngle(90);
Timer.delay(3.0);
servo.setAngle(180);
}
The Timer.delay(); sets the amount of time to wait before the execution of the next string of code.
|
What if I wanted the Front and Back Shooters motors to move the whole time?