mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 08:48:03 -06:00
added stuff (im geekin)
This commit is contained in:
@@ -13,9 +13,11 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
import frc4388.robot.Constants.IntakeConstants;
|
||||
|
||||
public class Intake extends SubsystemBase {
|
||||
/** Creates a new Intake. */
|
||||
|
||||
private CANSparkMax intakeMotor;
|
||||
private CANSparkMax pivot;
|
||||
|
||||
/** Creates a new Intake. */
|
||||
public Intake(CANSparkMax intakeMotor, CANSparkMax pivot) {
|
||||
this.intakeMotor = intakeMotor;
|
||||
this.pivot = pivot;
|
||||
@@ -28,23 +30,24 @@ public class Intake extends SubsystemBase {
|
||||
|
||||
//Rotate robot in for handoff
|
||||
public void rotateArmIn() {
|
||||
//TODO
|
||||
pivot.set(IntakeConstants.PIVOT_SPEED);
|
||||
}
|
||||
|
||||
//Rotates robot out for intake
|
||||
public void rotateArmOut() {
|
||||
//TODO
|
||||
pivot.set(-IntakeConstants.INTAKE_SPEED);
|
||||
pivot.set(-IntakeConstants.PIVOT_SPEED);
|
||||
|
||||
}
|
||||
|
||||
public void handoff() {
|
||||
intakeMotor.set(-IntakeConstants.INTAKE_SPEED);
|
||||
}
|
||||
|
||||
public void stopIntakeMotors() {
|
||||
intakeMotor.set(0);
|
||||
}
|
||||
|
||||
public void rotateArm() {
|
||||
//TODO
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.ctre.phoenix.motorcontrol.NeutralMode;
|
||||
|
||||
|
||||
public class Shooter extends SubsystemBase {
|
||||
|
||||
private TalonFX leftShooter;
|
||||
private TalonFX rightShooter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user