Set up two motors (I recommend using Krakens). Then:
In autonomous:
- Have both motors run forward for 3 seconds, backwards for 3 seconds, etc., for the entire autonomous period.
In teleop:
- Have motor 1 turn on when the A button on an Xbox Controller is held down. It should stop when the button is not held down.
- Have motor 2 toggle whenever the B button is pressed. If the button is pressed once, the motor turns on. When it's pressed again, it's turned off. Etc.
- Put the state of the toggle on SmartDashboard.
- If motor 2 is toggled on for more than 10 seconds, it should automatically be toggled off.
There are no automated tests for this assignment, so test each of these cases manually before submitting.