Used to compute the straightening angle when approaching a wall.