We can use a limit switch to detect when a box is "loaded" into the intake. If we don't stop the intake wheels, we might shred the box covers, and the FRC Referees will get angry at us! If know when we're finished, we can also signal to the driver that the box is loaded, and they will know they can start to drive away even if they can't see the gripper!
A high level recipe for this:
Ask Mr. Hajel for a Limit Switch, and wire it up to our roadkill test board.
Look at this WPILib article about how to use a limit switch as a DigitalInput object
Demonstrate that you can read the value of the LimitSwitch by logging it to the dashboard
Use the limit switch to terminate the IntakeTakeIn command
We can use a limit switch to detect when a box is "loaded" into the intake. If we don't stop the intake wheels, we might shred the box covers, and the FRC Referees will get angry at us! If know when we're finished, we can also signal to the driver that the box is loaded, and they will know they can start to drive away even if they can't see the gripper!
A high level recipe for this:
DigitalInput
object