Nasa used AI to analyse orbital images and plan rover drives, overcoming communication delays between Earth and Mars.