Like people, autonomous vehicles will have moral dilemmas that require ethical decision-making but it could be tough deciding what is ethical.
Choosing the Ethics of Self-Driving Cars
Governments have begun to provide guidelines about the ethical choices that will be necessary when programming driverless cars.