That's the task that faced Peter Adler and Don Eyles of the MIT Instrumentation Lab who were responsible for developing the software for the Apollo Lunar Module. Their system worked, but almost caused ...