Robot Olympics

Pre Lab:

In the drawing function which I created, my robot attempts to draw the Sierpinski Triangle as fast as it can. I developed my algorithm by first sketching out the triangle by hand without lifting my pen from the paper. Then, I discovered after the initial build that it would be more time-efficient to, instead of beginning the drawing at one of the vertices, start midway through one of the sides of the big triangle, because then the robot spends less time turning. This algorithm had no need for any of the sensors, since it is designed to run under any conditions, and I am assuming that Blimpie will be given ample space in which to compete.

The code I used

The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees