From 355b6652ddb736494cbfdefc1f252fc4f3f0dd60 Mon Sep 17 00:00:00 2001 From: Ryan Bauroth <25bauroth@da.org> Date: Wed, 3 Apr 2024 17:11:44 -0400 Subject: [PATCH] added pass function not keybound to a controller yet --- src/main/java/frc/robot/commands/ShooterCommands.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/frc/robot/commands/ShooterCommands.java b/src/main/java/frc/robot/commands/ShooterCommands.java index 69fff5e..c9cdbb5 100644 --- a/src/main/java/frc/robot/commands/ShooterCommands.java +++ b/src/main/java/frc/robot/commands/ShooterCommands.java @@ -173,6 +173,15 @@ public static Command simpleHoodZero(Shooter shooter) { .withName("Simple Hood Zero"); } + //https://www.desmos.com/calculator/rcnsmtoqwi hypothetical math + public static Command passNote(Shooter shooter) { + return run(() -> { + shooter.shooterRunVelocity(1500); + shooter.setTargetShooterAngle(Rotation2d.fromRadians(1.06)); + }, shooter) + .withName("passNote"); + } + public static Command shooterSetZero(Shooter shooter) { return run(() -> { shooter.shooterRunVelocity(0.0);