The nature of emergencies themselve make dealing with them in software near impossible. How do you write software for a condition you can not anticipate? How would you test it? How can you make sure that it is not misdiagnosing a situation and making the problem worse?
The 737max disaster should be enough to demonstrate how dangerous misbehaving software in a plane can be.
> Many private planes with modern avionics now have an auto-level button on the AP that very reliably recovers from a dive or other unusual attitudes. Airlines typically don't and it's clear that the simple (and very easy to program) button could have saved many lives.
Every modern jet since the early 90s has this. In every family of Airbus you can press the 'ALT' push-button or pull on the V/S knob. Both will level off the aircraft immediately (with slightly different follow-on characteristics).
Edit: to add more context, this works in unusual situations like dives and high-nose attitudes as well. The only difference is the inertia of a modern jet means the leveling off takes a bit longer.
It used to be 'level the wings, pull the nose.' The issue is even expert ATPs often perform the wrong action initially, making the problem worse.
Pressing ALT is taught as the correct thing when you're not completely sure what to do but for a fully unusual attitude (e.g. really nose-high or nose-low, or an acute bank angle) then currently the procedure is to handle it manually. To be honest, to get a large aircraft into that situation requires a pilot to screw it up badly in the first place, the AP won't get you there (well it might but hasn't happened yet).
A couple of years ago most airlines started training a more verbose method of recovery (disengage, push/pull, roll, thrust, stabilise - is the mantra) in response to studies conducted by Boeing and Airbus. Before airlines I used to compete in and teach advanced aerobatics so I'm not completely happy with that procedure (e.g. why push/pull first if you have huge bank on, only going to make things worse) but it's what the industry is pushing right now.
Overall though I think the bigger issues with pilot error are not things like unusual attitudes, yes they do happen from time to time but far more incidents occur from unstable approaches and silly inputs during takeoff. Hence why most changes in regulation right now are in those areas.
It's ridiculous that pilots are still expected to attempt to calculate glide distance and airport in their head, and they almost always get it wrong.
Many private planes with modern avionics now have an auto-level button on the AP that very reliably recovers from a dive or other unusual attitudes. Airlines typically don't and it's clear that the simple (and very easy to program) button could have saved many lives.