You will have to submit the next several tasks to practice the use of touch sensor. You will have to implement two different behaviours of a shooting with guns. You will have to program the robot to emits a sound when the touch sensor is pressed. The two "modes" of the gun will be as follows:
- Manual mode: Imagine a pistol here. By manual mode it is meant that the brick counts only different presses of the touch sensor. For example - in order to shoot again, you need to release the touch sensor and press it again.
- Automatic mode: Imagine programming a machine gun here, with touch sensor as trigger. It must respond to touch in order to both start and stop firing, just like the real thing. In automatic mode you don't need to release and press again the touch sensor for the next bullet - as long as you are holding the touch sensor pressed, the robot shoots.