Index code is nearly complete. There's just a few small changes that need to be made.
Index subsystem has 2 functions for setting index motor power: setindexMotor and setIndexmotor. setindexMotor (lines 32-35) isn't needed so go ahead and delete it.
The index subsystem imports a few things that we didn't end up needing. Go ahead and remove those imports. They are VictorSPX, WPI_TalonSRX, WPI_VictorSRX, command.Subsystem, and motorPorts.*
In the Index command, set the motor power to 0 in initialize and return false in isFinished. The reason for this is because the Index command will be left running while the robot runs around picking up a ball. Rather than have to start the index command every time we pick up the ball, we're going to leave it running and manually stop the command any time we go to shoot.
Index code is nearly complete. There's just a few small changes that need to be made. Index subsystem has 2 functions for setting index motor power: setindexMotor and setIndexmotor. setindexMotor (lines 32-35) isn't needed so go ahead and delete it. The index subsystem imports a few things that we didn't end up needing. Go ahead and remove those imports. They are VictorSPX, WPI_TalonSRX, WPI_VictorSRX, command.Subsystem, and motorPorts.*
In the Index command, set the motor power to 0 in initialize and return false in isFinished. The reason for this is because the Index command will be left running while the robot runs around picking up a ball. Rather than have to start the index command every time we pick up the ball, we're going to leave it running and manually stop the command any time we go to shoot.