From a2434a8fde3c70c30f490978a7ee34b7234a69ad Mon Sep 17 00:00:00 2001 From: aarav18 Date: Sat, 19 Mar 2022 22:24:45 -0600 Subject: [PATCH] very smol change --- .../robot/commands/ShooterCommands/Shoot.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/commands/ShooterCommands/Shoot.java b/src/main/java/frc4388/robot/commands/ShooterCommands/Shoot.java index 7e560be..f14f449 100644 --- a/src/main/java/frc4388/robot/commands/ShooterCommands/Shoot.java +++ b/src/main/java/frc4388/robot/commands/ShooterCommands/Shoot.java @@ -114,9 +114,6 @@ public class Shoot extends CommandBase { this.targetHood = drum.getHood(distance); this.targetAngle = AimToCenter.aaravAngleToCenter(odoX, odoY, swerve.getRegGyro().getDegrees()); - - // deadzone processing - if (AimToCenter.isDeadzone(targetAngle)) {} // initial error updateError(); @@ -166,8 +163,17 @@ public class Shoot extends CommandBase { // Called once the command ends or is interrupted. @Override public void end(boolean interrupted) { - // return to initial swerve rotation + + // ? return to initial swerve rotation // swerve.driveWithInput(0, 0, initialSwerveRotation, true); + + this.swerve.driveWithInput(0.0, 0.0, 0.0, 0.0, true); + this.turret.m_boomBoomRotateMotor.set(0.0); + + if (this.toShoot) { + this.hood.runHood(0.0); + this.drum.runDrumShooter(0.0); + } } // Returns true when the command should end.