The US Navy has tested software enabling autonomous drones to land on moving ships using onboard cameras and motion sensors without GPS.