NASA’s OSIRIS REx mission is testing an autonomous navigation system that could keep spacecraft safe enough to fly another day.