import edu.wpi.first.wpilibj.command.Subsystem;
/**
+ * Intakes the balls into ball container.
+ *
* @author Meeta
*/
public class Intake extends Subsystem {
private CANTalon intakeWheel;
public static final double INTAKE_SPEED = 0;
- // create speed of intake whee
public Intake() {
intakeWheel = new CANTalon(Constants.Intake.INTAKE_ROLLER_PORT);
}
+ /***
+ * It gets the intake instance, and if intake has not been initialized, then
+ * it will be initialized.
+ *
+ * @returns intake
+ */
public static Intake getIntake() {
if (intake == null) {
intake = new Intake();
}
+ /***
+ * Sets speed of intake wheel to input speed
+ *
+ * @param speed
+ * from -1 to 1
+ */
public void setSpeed(double speed) {
intakeWheel.set(speed);
}