March 10, 2017
My students are having trouble getting their robot to behave as desired. I have a question:
If I have multiple event handlers, (one for object ahead, a second for object to the right, and a 3rd for object to the left), when the robot detects an obstacle ahead, does it at the same time detect obstacles on both the left and right? If so, wouldn’t the program try to run all 3 functions referenced in the event handlers?
August 24, 2015
This one is a bit of a unique case.
Edison’s obstacle detector can really only obstacles on Left and Right.
Edison’s software then interprets seeing both obstacles on the Left and Right as seeing an obstacle in front.
This means Edison will always see an obstacle on one side before it see’s an obstacle on both sides (i.e. in front)
So Edison will start to run either the left or the right event before registering the obstacle ahead