Computers know
how to do things but don't know
what they are doing.
If you want the computer to know
what is happening then it seems to me that all it really needs to be able to do is to run a simulation in real time with current conditions and look ahead to see what is going to happen so it can take the appropriate action. I think Google self-driving cars do exactly that. (As do our own brains)
No it will not be omniscient. No it will not be infallible. No it will not replace the pilot. But it will be much smarter.
Anybody that thinks that smarter computers is a bad thing has rocks in their head.
Some of the recent airplane crashes would have been prevented if the computer had simply been able to look ahead and see what was going to happen
Google patent:
https://www.google.com/patents/US9248834