i'm with Drago on this one. As for the Trolley problem, it's a red herring. If the vehicle is not put into scenario where there is an unavoidable collision it is a non-problem.
Why would it not be in that position? It's not human. It has multiple inputs - visual, IR, etc. It can see further. It can use prediction modelling to work out what is going on. It has reaction times vastly faster than a human. It can talk to other vehicles which are also autonomous. The more cars you have talking to each other, the more information the system can have about danger vectors. The development scenario is for the car to take action *before* the scenario happens.
The trolley problem is a binary choice. Autonomous AIs will never have a binary choice and all AI development is around the car learning to read the world around it using its enhanced senses. That's why it is still some time away. Tesla have the biggest archive of input data in the world from their vehicles. Elon Musk has stated that Tesla will have Grade 5 capable vehicles by the end of next year. That's probably over optimistic, but by 5 years? I wouldn't bet on it - and once Tesla has Grade 5 autonomous vehicles expect networks of quick hire self-driving Tesla taxis to become commonplace.