Even though they won’t be controlled by humanoid robots, the software that will run driverless cars raises many ethical challenges.