@ Grumpy_mike . That is where i am facing problem. My project was to save the path followed by line follower and retrace it . I was able to do this forward path tracing but then to make it retrace the path backwards , here the left motor and right motors are changed in position thus they are not having same speed so i am not getting the output.
I will try not to reverse the robot and use L293D s pin to go backwards , maybe it will work as the same motors will take the same turns.
Do you think that L293D will also be able to drive the motors the same way backwards , or it will change.