Add code base
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / Robot.java
1 package org.usfirst.frc.team3501.robot;
2
3 import org.usfirst.frc.team3501.robot.Constants.DriveTrain;
4 import edu.wpi.first.wpilibj.IterativeRobot;
5 import edu.wpi.first.wpilibj.command.Scheduler;
6
7 public class Robot extends IterativeRobot {
8 public static OI oi;
9 public static DriveTrain driveTrain;
10
11 @Override
12 public void robotInit() {
13 driveTrain = new DriveTrain();
14 oi = new OI();
15 }
16
17 @Override
18 public void autonomousInit() {
19 }
20
21 @Override
22 public void autonomousPeriodic() {
23 Scheduler.getInstance().run();
24
25 }
26
27 @Override
28 public void teleopInit() {
29 }
30
31 @Override
32 public void teleopPeriodic() {
33 Scheduler.getInstance().run();
34
35 }
36 }