Fix deleted stuff that shouldn't have been deleted
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / Robot.java
index 9b94e18ef2b16e9dba591cd905209b0d899b70aa..a9a878d22045adc794f5543b5b9e0808f78af893 100644 (file)
@@ -26,19 +26,26 @@ public class Robot extends IterativeRobot {
   // Sendable Choosers send a drop down menu to the Smart Dashboard.
   SendableChooser positionChooser;
   SendableChooser positionOneDefense, positionTwoDefense, positionThreeDefense,
-      positionFourDefense, positionFiveDefense;
+  positionFourDefense, positionFiveDefense;
 
   // Gyro stuff
   public GyroLib gyro;
 
   @Override
   public void robotInit() {
+    driveTrain = new DriveTrain();
+    oi = new OI();
     gyro = new GyroLib(I2C.Port.kOnboard, false);
 
     shooter = new Shooter();
     scaler = new Scaler();
     intakeArm = new IntakeArm();
 
+    initializeSendableChoosers();
+    addPositionChooserOptions();
+    addDefensesToAllDefenseSendableChoosers();
+    sendSendableChoosersToSmartDashboard();
+
   }
 
   private void initializeSendableChoosers() {
@@ -58,7 +65,7 @@ public class Robot extends IterativeRobot {
     positionChooser.addObject("Position 5", 5);
   }
 
-  private void addDefensesToAllDefenseSendableChooosers() {
+  private void addDefensesToAllDefenseSendableChoosers() {
     addDefenseOptions(positionOneDefense);
     addDefenseOptions(positionTwoDefense);
     addDefenseOptions(positionThreeDefense);