How do I program my Lego Mindstorms v3 robot to go straight until it detects an object and then return to where it was? What I don't know how to do is to go back to where it was without knowing how far it is going to go because the object it has to detect can change its place.