src/main/java/frc/robot/Robot.java
/** This function is called periodically during autonomous. */
This function is called periodically during autonomous.
This function is called periodically during autonomous .
@Override
  public void autonomousPeriodic() {
    double time = Timer.getFPGATimestamp();
    if (time - startTime < 3){
    Robot.drivertrain.setLeftMotors(0.6);
    Robot.drivertrain.setRightMotors(-0.6);
    Scheduler.getInstance().run();
   } else {
    Robot.drivertrain.setLeftMotors(0);
    Robot.drivertrain.setRightMotors(0);
    }
  }
@ Override public void autonomousPeriodic ( ) { double time = Timer . getFPGATimestamp ( ) ; if ( time - startTime < 3 ) { Robot . drivertrain . setLeftMotors ( 0.6 ) ; Robot . drivertrain . setRightMotors ( - 0.6 ) ; Scheduler . getInstance ( ) . run ( ) ; } else { Robot . drivertrain . setLeftMotors ( 0 ) ; Robot . drivertrain . setRightMotors ( 0 ) ; } }
This function is called periodically during autonomous.
This function is called periodically during autonomous .