![]() ![]() ![]() ![]() Introduction: In this guide, the Ranger Bot will be programmed to move forward until it senses a black. Note: A comment is not part of the code that the NXT brick will execute, but it helps the programmer by allowing the addition of notes to describe what has been done. Line Follower Programming Guide (ROBOTC): Part 3. Notice that comments appear in green when code is typed into ROBOTC. Beside the variables, there are two slashes (//) followed by what that variable is representing. It should look similar to the code given below. To start, open the program from Line Follower Extension Part 2. This guide is for use with the ROBOTC® programming language. It will then follow the line by continuously turning left and right. Upon sensing the black line, it will pause and then turn until it is off the line. You don’t need a closed loop ( although it is a good idea to do it in that way ). I have used a black tape and with the finger I have sticked it to the floor creating a continuous path that the robot will follow. Line Follower Programming Guide (ROBOTC®): Part 3 Introduction: In this guide, the Ranger Bot will be programmed to move forward until it senses a black line. If you happen to have the Mindstorms NXT 2.0 it has a mat with a big elipse-like line that works great for this tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |