Anonymous

Difference between revisions of "Line follower algorithm"

From cod3v
 
Line 31: Line 31:
== 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.
The ''Zig Zag'' never drives the robot straight. Either the robot turns to the left or to the right. However, the robot 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 that continuously examines the line.


== Exercises ==
== Exercises ==