Add code base
[3501/roboRIO-code-base] / src / org / usfirst / frc / team3501 / robot / Robot.java
diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java
new file mode 100644 (file)
index 0000000..36ca70b
--- /dev/null
@@ -0,0 +1,36 @@
+package org.usfirst.frc.team3501.robot;
+
+import org.usfirst.frc.team3501.robot.Constants.DriveTrain;
+import edu.wpi.first.wpilibj.IterativeRobot;
+import edu.wpi.first.wpilibj.command.Scheduler;
+
+public class Robot extends IterativeRobot {
+  public static OI oi;
+  public static DriveTrain driveTrain;
+
+  @Override
+  public void robotInit() {
+    driveTrain = new DriveTrain();
+    oi = new OI();
+  }
+
+  @Override
+  public void autonomousInit() {
+  }
+
+  @Override
+  public void autonomousPeriodic() {
+    Scheduler.getInstance().run();
+
+  }
+
+  @Override
+  public void teleopInit() {
+  }
+
+  @Override
+  public void teleopPeriodic() {
+    Scheduler.getInstance().run();
+
+  }
+}