I am trying to figure out the logic for a line follower with the path shown in the attached image. I am having trouble with <= 90 degree angle turns. So far, I have been using the logic where if the middle and a side's sensor are on the line and the other sensor is on white, then I turn 90 degrees after driving forwards a little. This does not work for the part marked in blue since the distance designated by the arrows is too small to drive forward any amount and the acute angle causes my car to keep going side to side perpetually half the time I run the program.
Also, if I am using proportional line following in order to approach intersections more perpendicularly, do I have to keep track of which side of the line I am on?
Suggestions on how to improve my design would be appreciated