An old seafaring instrument could help astronauts on ever more far-flung and perilous missions.