Sun Jan 21, 2018 1:17 pm
in general terms, to turn the robot around, you just rotate the wheels on either sides of the robot in the opposite direction.
If you have some kind of feedback mechanism, so that you can see how much each wheel rotates, you just rotate each (pair of) wheel(s) the amount needed for a 180 degrees rotation.
if you don't have feedback mechanism you can try to just time the amount of time the wheels need to turn to result in a 180 degree rotation, but it will be just be an estimated guess.
p.s. During the turn you are not trying to follow the line.