Robotics C++ Physics II AP Physics B Electronics Java Astronomy Other Courses Summer Session  

Tethered Wrestler

 

Program as Shown

The program shown on the right uses two motors (designated C and A) and two touch sensors.

As shown, the processing is done in parallel; each touch sensor controls one motor.

By touching just one sensor, the robot will turn

    since the other sensor is not touched, its motor is in "Coast" mode.

By touching both sensors at the same time, the robot moves forward.

A Modification to the Program Shown

What happens if you

    add another sensor, in parallel to those shown, that controls both motors C and A, and

    that is programmed to place both motors in reverse if pressed?