}));
}
- // if (intake != null && spindexer != null){
- // NamedCommands.registerCommand("Spin Intake Rollers", new
- // ParallelCommandGroup(
- // new InstantCommand(()->intake.spin(IntakeConstants.SPEED))
- // ));
- // NamedCommands.registerCommand("Stop Intake Rollers", new
- // ParallelCommandGroup(
- // new InstantCommand(()->intake.spinStop())
- // ));
- // }
-
if (turret != null && drive != null && hood != null && shooter != null && spindexer != null) {
- Command runSpindexer = new RunSpindexer(spindexer, turret);
+ Command runSpindexer = new RunSpindexer(spindexer, turret, hood);
NamedCommands.registerCommand("Auto shoot", new AutoShootCommand(turret, drive, hood, shooter, spindexer));
NamedCommands.registerCommand("Start Spindexer",
new InstantCommand(() -> CommandScheduler.getInstance().schedule(runSpindexer)));