Team818SteelArmadillos / 2020-InfiniteRecharge

Robot code for 2020 Season
0 stars 0 forks source link

discordIndex #42

Open Purgso opened 4 years ago

Purgso commented 4 years ago

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.