I'm trying do make simple program. Two motors, two touch sensors. Sensor one increases speed, sensor two decreases.
The whole program works very well but only with one sensor. When I put some logic that has "Wait for sensor two" brick it just fools around.
The algorithm is very simple:
i- counts times sensors being pressed
Znak(eng. sign) causes variable
ito decrease if negative or increase if positive.
- Motor speed is calculated by multiplying
How can I solve this kind of problem?