by waterlesscloud · 12y ago · 0 comments
It's a triple redundant system, that is there's 3 separate PFC systems. That's not too surprising.
What did surprise me was that each of the 3 PFCs has 3 channels, and each channel is a CPU from a different manufacturer (AMD, Motorola, Intel). The reasoning is that any flaw in any particular cpu design would be outvoted by the other two.
They appear to use 3 different compilers for this reason (Ada), one for each processor. Seems like the I/O and endianness of the various chips would add complexity too.
I wonder if the added complexity makes it a net win or loss for safety? I guess a win, since that's what they do.
> Q. How are actuators controlled?
> A. For the aerosurface actuators, each of the four computers sends out an independent command on an independent bus. With no failures, the commands should be identical. The voting is done at the actuator using a hydraulic voting mechanism, called a force-fight voter. In it, there are four hydraulic ports called secondary ports, each commanded by one of the four GPCs. The secondary ports go into the primary ports, which are heavy-duty actuators that connect to what's called a "summing bar," which is no more than a massive steel rod. If there are three good computers and one bad one, the three good commands physically out-muscle the fourth. This limits the control authority a little bit--we don't get the total force we'd like to get, but there's still enough power to control the vehicle. If you have a large enough pressure differential for a large enough time, the port is hydraulically bypassed, which relieves the pressure in that one port. The remaining three ports then regain their full authority.
The whole article is worth a read: http://klabs.org/DEI/Processor/shuttle/shuttle_primary_compu...
Homer: Well, today's the day for Homer J. I know I'm
gonna win this time.
Lenny: Yeah? How come?
Homer: Union Rule 26: "Every employee must win Worker of
the Week at least once regardless of gross
incompetence, obesity or rank odor."
Mr. Burns: Compadres, it is imperative that we crush the
freedom fighters before the start of the rainy
season. And remember, a shiny new donkey for
whoever brings me the head of Colonel
Montoya... Hmm? What? Oh! ...and by that I
mean, of course, it's time for the Worker of
the Week Award. I can't believe we've
overlooked this week's winner for so very,
very long. We simply could not function
without his tireless efforts. So, a round of
applause for this inanimate [steel] rod.1. used a different CPU architecture and brand 2. used different circuits 3. used different algorithms 4. used different languages 5. were developed by independent teams 6. with a third independent team to verify there were no inadvertent similarities
If the two channels disagreed, they were automatically electrically isolated, and the pilot was notified and was expected to take over.
For this reason it was rejected for use on the 777 by the FAA Chief Scientific and Technical Advisor for Flight Controls.
With regard to the 777 Flight Control System Design, "Bob Yeh" released a number of documents on the system.
http://www.citemaster.net/get/1472830e-8785-11e3-9b63-00163e...
http://www.reuters.com/article/2014/03/09/us-malaysia-airlin...
I understand why Ada is used for safety-critical applications, but I have to wonder: Does the fact that Ada is a relatively old and unfriendly language lead to more bugs than it prevents? My mind would probably go blank if I had to stare at Ada code for 8 hours a day.
What if we used Haskell for all non-realtime safety-critical functionality in aircraft? With a few extra rules to prevent stack overflows, I think I'd trust a million-line Haskell program over a million-line Ada program (although it would probably be more like ten-thousand-line Haskell program vs million-line Ada program).
I would most certainly not trust Haskell over Ada in embedded system work.
I learned with "ADA as a Second Language", but its way out of date and I do believe out of print.
So does coding in assembly. The idea is to create fast, efficient code that is also simple and easy to understand.
>I would most certainly not trust Haskell over Ada in embedded system work.
If the system does not have hard realtime requirements and has a decent resources, why wouldn't you trust Haskell?
Because that doesn't describe cars, a jet, space shuttles, or ... well anything I'd trust my life to. Hell, Haas CNCs still run DOS 8.0
-> http://www.open-do.org/projects/hi-lite/gnatprove/
http://www.open-do.org/wp-content/uploads/2011/12/hi-lite-er...
Also as others have commented there are usually special requirements for embedded systems that may even occasionally require one to drop down to assembly (e.g. to get the code in the right place to execute if you're on bare metal).
The closest you're going to get it something like Atom [0] which is used to program a few different hard realtime systems. If you look at the Atom docs, however, you'll quickly find that programming in Atom is nothing like programming in Haskell---it's merely embedded there. The type system helps to ensure that your embedding does falter, but most of the errors still live in the sublanguage and I'm not sure how far Haskell's type system goes toward reducing those.
It won't help with with static analysis of any numeric types (though you can turn bad conversions into type errors, it can't tell if an explicit conversion is right or not) and the timing of anything is really hard to reason out.
The type system.
When I write Haskell programs, I create orders of magnitude fewer bugs than I do when writing programs in other PLs.
The language makes it very hard to screw up implementing an idea.
Haskell forces me to implement things in ways that are both elegant and easy to comprehend. Haskell does not easily admit spaghetti code.
The chance of one or more of the systems failing actually triples (OR), but the chance of all three failing (AND) decreases, which is what redundancy provides. Basic probability.
It means that there's an increased chance of bugs overall, yes, but a decreased chance of bugs that affect the overall flight, as it means that many more bugs will be caught and dealt with before they start affecting things majorly.
It doesn't save you from flaws in the design specs, though, or if everyone made the same faulty assumption.
As I've found myself: the best way to test an implementation of a data structure is to compare it against another implementation (preferably the simplest implementation possible - singly linked list, anyone?) and assert that they exhibit identical behavior.