Gapped & Crossed Line Following. Part 7. Turn right state
Next important state is Turn Right with our robot. This happens when we detect a line on the right.
- #210
- 24 Feb 2016
Next important state is Turn Right with our robot. This happens when we detect a line on the right.
Next state in our state machine programming pattern is the "Turn Left" state and the corresponding behaviour.
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.
We discuss the state of "Lost" and the different ways we could escape this state. We also build the next step of our State machine programming pattern where the next state is determined by the previous state.
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.
This is a 10 out of 10 video tutorial where we demonstrate the consistency and reliability of a LEGO Education SPIKE Prime Active attachment connected to the motors of the robot. The goal of this attachment is to accomplish the Bridge mission where we have to push both parts of the bridge and bring them down to connect them. We use some line following.
In this video tutorial, we accomplish a FIRST LEGO League mission called The Bridge. We demonstrate how to use a really simple active attachment where the goal of the mission is to push down both parts of the bridge. We do not enter into the programming and we leave it up to you as an exercise.