Create a new subsystem for the pneumatic hopper actuator. Its just another double solenoid. Throw it on a button on the driver controller, and use WhenPressed to flip the actuator up and WhenReleased to flip it back. Make sure to set the actuator to the down position when the robot starts.
Its best to have one command that just takes an open or closed state as a parameter
Create a new subsystem for the pneumatic hopper actuator. Its just another double solenoid. Throw it on a button on the driver controller, and use
WhenPressed
to flip the actuator up andWhenReleased
to flip it back. Make sure to set the actuator to the down position when the robot starts.Its best to have one command that just takes an open or closed state as a parameter