Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added pass function #122

Closed
wants to merge 11 commits into from
8 changes: 8 additions & 0 deletions src/main/java/frc/robot/commands/ShooterCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ public static Command simpleHoodZero(Shooter shooter) {
.withName("Simple Hood Zero");
}

public static Command passNote(Shooter shooter) {
return run(() -> {
shooter.shooterRunVelocity(1000);
shooter.setTargetShooterAngle(Rotation2d.fromRadians(.25));
}, shooter)
.withName("passNote");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hold on i actually think we need to also have a feeder command for this, without it we won't actually shoot, so once the shooter is at setpoint you should shoot

public static Command shooterSetZero(Shooter shooter) {
return run(() -> {
shooter.shooterRunVelocity(0.0);
Expand Down
Loading