This commit is contained in:
Abhishrek05
2024-01-22 17:43:40 -07:00
parent 005b936718
commit c422fa4114
@@ -14,16 +14,30 @@ import frc4388.robot.Constants.IntakeConstants;
public class Intake extends SubsystemBase { public class Intake extends SubsystemBase {
/** Creates a new Intake. */ /** Creates a new Intake. */
private CANSparkMax intakeMotor; private Spark intakeMotor;
public Intake(CANSparkMax intakeMotor) { private Spark pivot;
public Intake(Spark intakeMotor, Spark pivot) {
this.intakeMotor = intakeMotor; this.intakeMotor = intakeMotor;
this.pivot = pivot;
} }
public void spinIntakeMotor() { public void spinIntakeMotor() {
intakeMotor.set(IntakeConstants.INTAKE_SPEED); intakeMotor.set(IntakeConstants.INTAKE_SPEED);
} }
public void rotateArmIn() { //handoff
//TODO
}
public void rotateArmOut() { //intake
//TODO
spinIntakeMotor();
}
public void rotateArm() {
//TODO
}
@Override @Override
public void periodic() { public void periodic() {
// This method will be called once per scheduler run // This method will be called once per scheduler run