This commit is contained in:
TheRealGreydon 2026-10-13 21:35:48 -04:00
parent 119fb954da
commit 850f091148
2 changed files with 3 additions and 3 deletions

View File

@ -53,6 +53,7 @@ public class RobotContainer {
// turretSubsystem.setDefaultCommand(new AutoTurretCommand(turretSubsystem, driveSubsystem));
turretSubsystem.homeTurret();
hopperSubsystem.spindexerOn();
// Configure the trigger bindings
configureBindings();
@ -84,7 +85,6 @@ public class RobotContainer {
// m_driverController.povUp().onTrue(new SetDeflectorCommand(turretSubsystem, Constants.ShooterConstants.DEFLECTOR_SET_ANGLE2));
//m_driverController.back().whileTrue(new AutoShootCommandChassisTurretPathPlanner(driveSubsystem, hopperSubsystem, turretSubsystem));
m_driverController.leftBumper().onTrue(Commands.runOnce(() -> turretSubsystem.homeTurret(), turretSubsystem));
m_driverController.rightBumper().onTrue(Commands.parallel(intakeSubsystem.intake(m_driverController.getHID())));
m_driverController.start().whileTrue(intakeSubsystem.resetDeploy());
// m_driverController.a().whileTrue((new AutoTurretShootCommand(hopperSubsystem, turretSubsystem, intakeSubsystem, driveSubsystem)));

View File

@ -46,7 +46,7 @@ public class UltraShooterCommand extends Command{
@Override
public void initialize() {
hopperSubsystem.spindexerOn(); // Activate spindexer so it's on while command is active
//hopperSubsystem.spindexerOn(); // Activate spindexer so it's on while command is active
hopperSubsystem.stopKicker(); // Make sure kicker is off when command is called
CommandScheduler.getInstance().schedule(waitCommand); // Kick off a wait timer so robot doesn't shoot until hopper is ready
alliance = DriverStation.getAlliance().get(); // Fetch our alliance
@ -218,7 +218,7 @@ public class UltraShooterCommand extends Command{
@Override
public void end(boolean interrupted) {
waitCommand.cancel();
hopperSubsystem.spindexerOff();
//hopperSubsystem.spindexerOff();
hopperSubsystem.stopKicker();
turretSubsystem.setLauncher(0);