Anonymous

Difference between revisions of "Line follower algorithm"

From cod3v
Line 27: Line 27:
== Example Code ==
== Example Code ==


Zig Zag never drives straight. Either it turns to left or right. However, it can be made very fast, and reliable---of course depending on the line. The turning part is coded into ''if else'' block which is in the loop.  
Zig Zag never drives straight. Either it turns to left or right. However, it can be made very fast, and reliable---of course depending on the line. The turning part is coded into ''if else'' block which is in the loop.
 
[[File:Zigzag.png|thumb|Zigzag algorithm]]
 


== Exercises ==
== Exercises ==