One of the things that it has become popular for the commentariat to wring their hands over is the ethics of self driving cars. What if there is a trolley problem* where the car can save the lives of many by sacrificing or risking the life of its driver?
The solution isn't simple, in the sense that our modern system of rules and regulations and common practices for an automobile based society aren't simple. But given that this infrastructure will remain in place, the ethical questions of self driving cars are not hard.
Cars should be programmed to follow the rules of the road, and change their behavior in light of people violating the rules only to the extent as it is currently expected.
These rules were made for a reason. If a car was known to react selflessly they will be taken advantage of. Google found this out first hand when they had to adjust their cars to make them more aggressive. This was in part to avoid scenarios in which cars were cutting off Google's cars consistently in heavy traffic. If people knew that they could take advantage of a car, some proportion of the population will react to those incentives.
So if a person jumps out in front of a car on the bridge and the car has an option of trying to brake while hitting the person or driving off the bridge, the person who jumped out in front of the car is going to suffer.
The ethics of traffic laws make for interest conversation. But adding self driving cars to the mix doesn't change the basic behaviors.
The legality of self driving cars, such as who gets sued if there is an accident where the self driven car is at fault, is still an unsolved problem and is more productive topic of discussion and debate.
While on the topic:
*The Trolley Problem is confusing. My main issue with it is that it doesn't analogize very well onto relevant real world situations where estimated costs and benefits are uncertain and may be incorrect**. The situation is also muddied when various actors have different levels of culpability. What if the crowd of people are willingly on an track with a big sign that says "Trains coming" and the single person is standing on a track with a "Track closed" sign? It should change things.
**This is also one of the biggest problems with "The ends justify the means" thinking. People are bad at probability and more often than not are wrong about the beneficial ends, while the horrible means they utilized to attain those ends still happened.