THIS ROBOT PROGRAM IS DESIGNED TO TRIGGER POTENTIALLY UNSAFE ROBOT BEHAVIOR AS A DEMONSTRATION OF A BUG
This program demonstrates an issue where an exception in a VisionProcessor
's onDrawFrame
method can cause unstable and potentially unsafe robot behavior.
This program requires the following hardware to be configured:
- A DC motor called "Pivot"
- A DC motor called "Lift"
- A Webcam called "Webcam 1"
There is only one opmode, which is called "Teleop".
10 seconds after hitting play, the ColorProcessor
vision processor will divide by 0 in onDrawFrame
. After this point, you should not assume the robot is safe until it has been powered off and on again.