2202Programming / PriorBots

Code for multiple robots we still run in a single build.
MIT License
3 stars 0 forks source link

TimBot - Fire Control #6

Open dlaufen opened 1 month ago

dlaufen commented 1 month ago

This is an easy one. The frisbee is delivered via a solenoid to the flywheels. A simple Shoot() api needs to be setup around the solenoid.

It's likely a DoubleSolenoid is used, check this with tubing and PCM port ID wiring.

This doesn't need to be a sub-system on it's own, but please start that way for testing. Later we will likely just merge the code into a larger Shooter class.

See: https://docs.wpilib.org/en/stable/docs/software/hardware-apis/pneumatics/solenoids.html

public API: void shoot() - fires the solenoid void reset() - retracts, ready for next shot