Spin
This commit is contained in:
parent
119fb954da
commit
850f091148
|
|
@ -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)));
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue