Hello, could you help me?
-
I need a command, a function that allows to find out the position of the pusher at any time by using the keys, for example. At the moment the position of the pusher is bound to the sensor. The box crosses the sensor, the sensor issues a task for the movement of the puher. Also, when we touch the sensor, we display the coordinates of the pusher. The command “puts” didn’t help, it show the text, but we need the changing value.
-
I need a command that is triggered by the condition: "sensor 2" = 1, "sensor 3" = 1, moreover, when the box leaves the sensor's range, "sensor 2" = 0. The pusher moves to a value of -70 when there are 2 boxes on the conveyor in the range of sensors 2 and 3.
The problem is as follows: the pusher is triggered by the condition if laser2 && laser3> 0, fly = -70, written in the script of sensor 3.
But when the box crosses the sensor 3, only one condition is triggered (laser3> 0), the boxes do not accumulate.
Is there a function (onTouch, onUpdate, etc.) where you can write a condition via an if for two sensors?