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.
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.