I have a sensor and motor connected to a conveyor. When the sensor sense a box, the conveyor stops as i want. But the robot picks random boxes from the conveyor.
How can I make it pick the box that triggered the sensor ?
my code is:
app = getApplication()
box = conveyorIn.ComponentChildren
I think the problem is in line 4 as the index chosen from the Component Children list changes everytime
Thanks in advance.