Spaceflight controller