public static class OI {
public final static int LEFT_STICK_PORT = 0;
public final static int RIGHT_STICK_PORT = 0;
+ public final static int RIGHT_STICK_TRIGGER = 0;
}
public static class DriveTrain {
public final static int ENCODER_RIGHT_B = 1;
}
+ public static class Shooter {
+ public static final int SHOOTER_WHEEL_PORT = 0;
+ }
+
public static enum Direction {
LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
}
package org.usfirst.frc.team3501.robot;
import org.usfirst.frc.team3501.robot.Constants.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 {
public static OI oi;
public static DriveTrain driveTrain;
+ public static Shooter shooter;
@Override
public void robotInit() {
driveTrain = new DriveTrain();
oi = new OI();
+ shooter = new Shooter();
}
@Override
package org.usfirst.frc.team3501.robot.subsystems;\r
\r
+import org.usfirst.frc.team3501.robot.Constants;\r
+\r
+import edu.wpi.first.wpilibj.CANTalon;\r
import edu.wpi.first.wpilibj.command.Subsystem;\r
\r
public class Shooter extends Subsystem {\r
+ CANTalon wheel;\r
\r
- public Shooter() {\r
-\r
- }\r
+ public Shooter() {\r
+ wheel = new CANTalon(Constants.Shooter.SHOOTER_WHEEL_PORT);\r
+ }\r
\r
- @Override\r
- protected void initDefaultCommand() {\r
+ @Override\r
+ protected void initDefaultCommand() {\r
\r
- }\r
+ }\r
}\r