Anonymous

Difference between revisions of "Line follower algorithm"

From cod3v
Line 25: Line 25:
== Theory ==
== Theory ==


''Zig zag'' algorithm turns the robot to right if the sensor sees white, and to left if the sensor is on the black. Or vice versa. The algorithm is easy to program using only one if block and loop block. The speed and turning value need to be considered and adjusted.
The ''Zig zag'' algorithm turns the robot to right if the sensor sees white, and to left if the sensor is on the black. Or vice versa. The algorithm is easy to program using only one if block and loop block. The speed and turning value need to be considered and adjusted.


[[File:Zigzag.png|thumb|''The Zig Zag'' algorithm.]]
[[File:Zigzag.png|thumb|''The Zig Zag'' algorithm.]]