Gapped & Crossed Line Following. Part 3. Strategy and Robot
We list the number of decisions that the robot is making while following the line. Then, we group them and decide on the number of sensors to be used.
- #206
- 20 Jan 2016
We list the number of decisions that the robot is making while following the line. Then, we group them and decide on the number of sensors to be used.
Next important state is Turn Right with our robot. This happens when we detect a line on the right.
We can Turn Right. We can Turn Left. How do we decide which way to go if there are lines both to the left and to the right. Check out the video.
All worked as expected, up until know because the robot got lost. This happens when we turn right and the line does not continue to the right. Now the robot must somehow understand that it is "lost" and escape.
The final video from the course. The robot escapes the state where it is lost. This happens if it can not continue in any direction.
In this episode we do a full run of the mission for collecting a single treasure before going into explanation on how we have programmed the robot.
The task is to find what the best seed is that will live the longest without entering into a loop or without dying. Find it and submit in the tasks section.
Following the Advance Sensor Calibration course section, we found the min and max values detected by each sensor. Now it is time for the real deal of the calibration. Detect the current value from the sensor and find what is the percentage of this value for the range between min and max.
Implement the program for array initialization.
Follow the video tutorials for initializing arrays and implement the program.
As an exercise try to implement the calibration of the minimum and maximum values for a single sensor.
Following the previous tutorials from the course, implement the calibration of the minimum and maximum values.
Implement a program for stopping at a black line with the blocks containing the implementation details for the InitArray, Calibration and Getting the calibrated result.
Following the Advance Light/Color sensors calibration for a minimum value for a single sensor tutorial, in this one, we continue with finding the maximum value detected by a sensor and storing this value in an array.