Fix instatiation bug by creating OI after the subsystems it uses
authorHarel Dor <hareldor@gmail.com>
Thu, 10 Mar 2016 00:00:48 +0000 (16:00 -0800)
committerHarel Dor <hareldor@gmail.com>
Thu, 10 Mar 2016 00:00:48 +0000 (16:00 -0800)
src/org/usfirst/frc/team3501/robot/Robot.java

index d10b2c5fdb0ac7ac2541cfb5ea23911d9e94c6d0..7678a7289cc4506c66670c42418b5292fa9a0ef5 100644 (file)
@@ -19,10 +19,10 @@ public class Robot extends IterativeRobot {
   @Override
   public void robotInit() {
     driveTrain = new DriveTrain();
-    oi = new OI();
-
     shooter = new Shooter();
     intakeArm = new IntakeArm();
+
+    oi = new OI();
   }
 
   @Override