top of page
Search
Writer's pictureBryn Ardot

figure 8 challenge

Updated: Apr 8, 2019

here is the pseudo code for the figure 8 robot


goal: to make the robot go in a figure 8 formation, with its end being its starting point


1.Enter loop

2.move in a curve, going one way

3. once you circle back to the starting point, go the other way in a curve

4. once you circle back to the starting point, announce that you have reached the starting point

5. go back to the start of the loop.


I would mark this as a success. My robot can (barring the fact i cant tell it exactly how far to move to complete a circle at the angle its going at, and unavoidable technical problems) go in a figure 8 repeatedly, and indefinitely.


Since all the magic is in the software, there wont be any images of the robot itself, its just the normal EV3 robot. But i will show a video of it in action, as well as a screenshot of the code.


Here is a video of it in action:


Here is a picture of the code, with comments:



0 views0 comments

Recent Posts

See All

Comments


bottom of page