I have added the pneumatics subsystem which currently only has 2 solenoids. I have implemented a no longer needed function and command to test the first solenoid. After I did that I implemented a function to test any solenoid inputted and then made a command, UseASolenoid, to go with to allow it. The command has a sendableChooser in Robot.cpp that is then used in UseASolenoid that selects which solenoid to test.
An identical change should be done with motors to have a more concise project. This is also how we would implement multiple autonomous modes, not quite identical like with motors but very similar.
I have added the pneumatics subsystem which currently only has 2 solenoids. I have implemented a no longer needed function and command to test the first solenoid. After I did that I implemented a function to test any solenoid inputted and then made a command, UseASolenoid, to go with to allow it. The command has a
sendableChooser
inRobot.cpp
that is then used in UseASolenoid that selects which solenoid to test.An identical change should be done with motors to have a more concise project. This is also how we would implement multiple autonomous modes, not quite identical like with motors but very similar.