This is your autopilot speaking: we’re going down!

Air France 447 and Air Asia Q8501 are clear cases where the crash was caused either by computer problems, or because of the interface between the onboard computers and the pilots. What should we do to avoid these accidents in the future?  ...