package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.commands.driving.TimeDrive;
+import org.usfirst.frc.team3501.robot.subsystems.Climber;
import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
+import org.usfirst.frc.team3501.robot.subsystems.Shooter;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Scheduler;
public class Robot extends IterativeRobot {
private static DriveTrain driveTrain;
private static OI oi;
+ private static Climber climber;
+ private static Shooter shooter;
@Override
public void robotInit() {
driveTrain = DriveTrain.getDriveTrain();
oi = OI.getOI();
+ climber = Climber.getClimber();
+ shooter = Shooter.getShooter();
+
}
public static DriveTrain getDriveTrain() {
return OI.getOI();
}
+ public static Climber getClimber() {
+ return Climber.getClimber();
+ }
+
+ public static Shooter getShooter() {
+ return Shooter.getShooter();
+ }
+
@Override
public void autonomousInit() {
Scheduler.getInstance().add(new TimeDrive(1.5, 0.4));
package org.usfirst.frc.team3501.robot.subsystems;
public class Shooter {
- public Shooter() {
+ private static Shooter shooter;
- }
+ private Shooter() {
- /**
- * Stops fly wheel
- */
- public void stopFlywheel() {
+ }
- }
+ public static Shooter getShooter() {
+ if (shooter == null) {
+ shooter = new Shooter();
+ }
+ return shooter;
+ }
- /**
- * Runs the fly wheel at a given speed in () for input time in seconds
- *
- * @param speed
- * in ()
- * @param time
- * in seconds
- */
- public void runFlywheel(double speed, double time) {
+ /**
+ * Stops fly wheel
+ */
+ public void stopFlywheel() {
- }
+ }
- /**
- * Stops index wheel
- */
- public void stopIndexWheel() {
+ /**
+ * Runs the fly wheel at a given speed in () for input time in seconds
+ *
+ * @param speed
+ * in ()
+ * @param time
+ * in seconds
+ */
+ public void runFlywheel(double speed, double time) {
- }
+ }
- /**
- * Runs index wheel at a given speed in () for input time in seconds
- *
- * @param speed
- * in ()
- * @param time
- * in seconds
- */
- public void runIndexWheel(double speed, double time) {
+ /**
+ * Stops index wheel
+ */
+ public void stopIndexWheel() {
- }
+ }
- /**
- * Runs fly wheel continuously until ________
- */
- public void runFlywheelContinuous() {
+ /**
+ * Runs index wheel at a given speed in () for input time in seconds
+ *
+ * @param speed
+ * in ()
+ * @param time
+ * in seconds
+ */
+ public void runIndexWheel(double speed, double time) {
- }
+ }
- /**
- * Runs index wheel continuously until ________
- */
- public void runIndexWheelContinuous() {
+ /**
+ * Runs fly wheel continuously until ________
+ */
+ public void runFlywheelContinuous() {
- }
+ }
+
+ /**
+ * Runs index wheel continuously until ________
+ */
+ public void runIndexWheelContinuous() {
+
+ }
}