Section 4.7 - Project 2
Put Those Skills to Use!
This lesson will guide you through creating a two-motor shooter subsystem for your robot, where the motors act like flywheels to propel game pieces when activated. You will start by developing your own subsystem that incorporates two motors, followed by linking a command to a button press on the controller using toggleOnTrue. You will create two separate commands, each assigned to different buttons and operating at varying output percentages. To enhance your understanding, you will also implement useful printouts to monitor the system's performance. As a challenge, you will program the shooter command to automatically end after five seconds, utilizing the isFinished() method and a timer to achieve this functionality.