Swartdogs / ParadeCode

Robot code for Team 525's outreach/offseason "Parade Robot"
GNU General Public License v3.0
0 stars 0 forks source link

Create Default Command for Spinning Red Light #7

Closed CanineSatsuma6 closed 2 years ago

CanineSatsuma6 commented 2 years ago

In addition to being able to turn on the spinning red light at the press of a button, the light also doubles as a bit of a safety feature. The light should turn on when the robot is in motion.

Create a command that will enable/disable the spinning red light based on the current speed of the robot. If the robot is moving, the light should be on. Otherwise, the light should be controlled via button press.