package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.Constants.Defense;
-import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive;
import org.usfirst.frc.team3501.robot.subsystems.DefenseArm;
import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
import org.usfirst.frc.team3501.robot.subsystems.IntakeArm;
// Sendable Choosers send a drop down menu to the Smart Dashboard.
SendableChooser positionChooser;
SendableChooser positionOneDefense, positionTwoDefense, positionThreeDefense,
- positionFourDefense, positionFiveDefense;
+ positionFourDefense, positionFiveDefense;
@Override
public void robotInit() {
public void autonomousInit() {
Scheduler.getInstance().run();
- // // get options chosen from drop down menu
- // Integer chosenPosition = (Integer) positionChooser.getSelected();
- // Integer chosenDefense = 0;
- //
- // if (chosenPosition == 1)
- // chosenDefense = (Integer) positionOneDefense.getSelected();
- // else if (chosenPosition == 2)
- // chosenDefense = (Integer) positionTwoDefense.getSelected();
- // else if (chosenPosition == 3)
- // chosenDefense = (Integer) positionThreeDefense.getSelected();
- // else if (chosenPosition == 4)
- // chosenDefense = (Integer) positionFourDefense.getSelected();
- // else if (chosenPosition == 5)
- // chosenDefense = (Integer) positionFiveDefense.getSelected();
- //
- // System.out.println("Chosen Position: " + chosenPosition);
- // System.out.println("Chosen Defense: " + chosenDefense);
- }
-
- @Override
- public void autonomousPeriodic() {
- Scheduler.getInstance().run();
// Scheduler.getInstance().add(new DriveDistance(24, 5));
// Scheduler.getInstance().add(new DriveForTime(2, 0.3));
// Scheduler.getInstance().add(new TurnForAngle(90, 5));
}
@Override
- public void teleopInit() {
- Scheduler.getInstance().add(new JoystickDrive());
+ public void autonomousPeriodic() {
+ Scheduler.getInstance().run();
+ }
+ @Override
+ public void teleopInit() {
+ Robot.driveTrain.setLowGear();
}
@Override