Skip to content

Commit

Permalink
got rid of canShoot
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 30, 2024
1 parent 5f21f02 commit dc905ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,9 @@ public void teleopInit() {

/** @return The Command to schedule for auton. */
public Command getAutonCommand() {
AutonShoot.reset();

_swerveSubsystem.fieldOriented = false; // make sure swerve is robot-relative for pathplanner to work
_shooterSubsystem.setShooterState(ShooterState.IDLE);
_intakeSubsystem.setHasNoteAuton(false);

// Command test = new SequentialCommandGroup(
// NamedCommands.getCommand("shoot"),
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/frc/robot/commands/auto/AutonShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class AutonShoot extends SequentialCommandGroup {
public static boolean canShoot = false;

/** Creates a new AutonShoot. */
public AutonShoot(
ShooterSubsystem shooter,
Expand All @@ -49,11 +47,6 @@ public AutonShoot(
);
}

/** Resets this command for re-testing auton. */
public static void reset() {
canShoot = false;
}

private double headingPreset() {
return (UtilFuncs.GetAlliance() == Alliance.Red) ? 0 : 180;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/frc/robot/commands/intake/FeedActuate.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
package frc.robot.commands.intake;

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.commands.auto.AutonShoot;
import frc.robot.subsystems.IntakeSubsystem;
import frc.robot.subsystems.IntakeSubsystem.ActuatorState;
import frc.robot.subsystems.IntakeSubsystem.FeedMode;
Expand Down

0 comments on commit dc905ab

Please sign in to comment.