![]() The code below is more of a pseudocode than any actual code you can copy-and-paste into your program. The getLightPercent() and getLightPortion() functions below may need to be created by you. Once the condition has been met in the until function, then stop the line following task to stop following the line. The purpose of using a separate task for line following is so you can break from the line following based on the use of existing until functions such as untilSonar(), untilTouch(), untilDistance(), wait(), etc. This exercise walks you through the different steps in setting up a line following task and running it from within the main task. If you have RobotC, here is a good exercise in the task of LineFollowing. Line Following RobotC Include File Exercise in Line Following (for RobotC) ![]() A Non-Functioning EV3 (i.e., frozen or dead). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |