When an explosion crippled the spacecraft during its flight to the moon, Commander Mattingly—then the best trained man to fly the command module — went to work at Mission Control devising procedures that the astronauts used to help them return to the earth safely.