As an aerospace engineer, from what I've heard, the Boeing issue relating to the 737* Max wasn't really a software development issue. The software was designed exactly to specifications, but the specifications were designed poorly. There were a number of issues in the spec that all culminated; but none of it was due to poorly written code.
Automation engineer here, they changed a major control loop, and added in a bias based off a single sensor. When the sensor fails it reads max bias. Now the reason for the bias was because they fundamentally changed the plane's center of gravity adding the larger engine.
There are like 10 places that this could have been avoided, from not retrofitting planes with engines that are too big, to implementing redundant sensors, to sensor failsafe measures (in code), to just telling the pilots about the changes that were made (because they didn't do that), or even allowing full manual control (which they didn't do because changing the plane made it in control theory world, unstable).
A lot of that was due to bad high level specifications that were flowed down. One major aspect of the failure was that they defined the risk of a failure in the MCAS system at a lower classification in order to save cost. High classification risks are expensive to implement, because they require the implementation of redundancies. For example, although they had two sensors that flowed into the system, only one was used at a time. Using a hysteresis system would have helped solved that issue as you'd use the history of the sensors to help determine any erroneous data. Since the system wasn't classified as a higher risk, they did not use the time to implement such a system.
Yeah part of the issue was that they sold these aircrafts as upgraded 737s that didn’t require additional training. Due to this the pilots weren’t aware how to turn the it off during flight.
A software engineer cannot just blindly implement a spec and especially not one that makes the plane go down. They also didn't have a good fail-safe mechanism and, to make matters worse, there was no way to turn off the system by itself w/o turning off electric trim as well. This is a failure of everyone involved.
Edit: Adding the IEEE Spectrum article here about the 737-8MAX for the perspective of a software engineer.
It is astounding that no one who wrote the MCAS software for the 737 Max seems even to have raised the possibility of using multiple inputs, including the opposite angle-of-attack sensor, in the computer’s determination of an impending stall. As a lifetime member of the software development fraternity, I don’t know what toxic combination of inexperience, hubris, or lack of cultural understanding led to this mistake.
In a complex system like an aircraft, it's unreasonable to assume that a software engineer would have the high level understanding to question all of the specifications that they receive. It's obvious now what lead to the failure, but during the design process, it may not have been. Aerospace engineering is compartmentalized so that system engineers can focus on the design of the specifications, while the software and hardware engineers can just focus on the implementation.
Software engineers not only implement software, they help the spec, they prototype it, and they test their final system in simulators. There's no just black-box testing here. You have to test it live.
In fact, according to this the development follows a spiral model so they are able to revise earlier work, e.g. "An engineer then takes each block of a block diagram and considers the things that could go wrong with that block, and how they affect the system as a whole."
Software engineers manage the software based spec, but no software engineer is developing this without requirements spec from actual aviation engineers, who take their orders from the management chain and design their spec to cost, and then hand that off to software engineers to implement the functionality, who in an ideal world hand off their stuff to QA which includes a second set of both talented software and aviation engineers, ending in real world tests by end users, before a passenger sees a plane like this.
Expecting a software engineer to understand the necessary real world interactions of an entire system of this scale is unreasonable and dangerous. That's what the spec design phase is for. From there the job is to manage safety within the spec, not run off and somehow determine on their own that the system itself isn't designed properly in the context of actual flight.
No, it's not unreasonable and it's dangerous to not take advice from software engineers. Here's a long analysis from IEEE Spectrum about the accident.
It is astounding that no one who wrote the MCAS software for the 737 Max seems even to have raised the possibility of using multiple inputs, including the opposite angle-of-attack sensor, in the computer’s determination of an impending stall. As a lifetime member of the software development fraternity, I don’t know what toxic combination of inexperience, hubris, or lack of cultural understanding led to this mistake.
You cherry picked one paragraph specifically talking about the issues of the software engineering process, with no mention to him laying out the chain of events that led us to software developers apparently being responsible for flying planes - from hardware engineering to management to QA and regulation. There are not nearly enough senior developers who also happen to have been pilots for 30 years to build the staff you would need for someone of this authors experience for the work that needs to be done in that industry.
Even further I disagree with your cherry picked quote. It is not(should not be, at least) a software developers job to determine what information needs to be fused to properly design any specific application. It's unreasonable to expect that level of expertise when there are capable people that actually have that expertise who can audit such design. Software developers aren't aerospace engineers, or mechanical engineers, or doctors, or lawyers, or experts in any given field that they're asked to develop applications for. On occasion, you get those like this author that happen to be, but that is in no way the norm nor can it be expected to be the norm, there simply isn't enough intellectual capital to go around.
I'm not saying the developers have no fault in the matter, but to say that they should've caught this, and it points to their incompetence, crosses a line. There should be processes and people both up the chain(in design), and down the chain(in QA) to prevent such a necessity. Software developers are experts in software development, engineers are experts in their respective fields. Necessitating a developer be able to identify a fundamental break down in subject matter level design, or an SME to identify a fundamental break down in software design, is ludicrous. The two are both needed and they must communicate, but must also take responsibility for their own area of expertise.
You cherry picked one paragraph specifically talking about the issues of the software engineering process, with no mention to him laying out the chain of events that led us to software developers apparently being responsible for flying planes - from hardware engineering to management to QA and regulation.
Well, I said
This is a failure of everyone involved.
Not just the software developers.
And I guess we agree to disagree. Like the quote you said I "cherry picked," they knew there was a single input and a catastrophe waiting to happen. In software engineering you either have a fail-safe mechanism, redundancy, or you accept the consequences of the component failing. Which one was it in this case? Didn't they test a single input failure in an industry of redundancies?
If you write software that makes a plane descend without pilot control, make sure you have redundancies or ways to turn the thing off.
Yeah, I agree. Aerospace systems tend to follow a V-model testing scheme. Each subsystem is tested individually, and within each system; and it's done repetitively to revise each system. I was just stating that it's usually different people involved in each step. You've got software engineers writing the software, test engineers verifying that the software works, system engineers defining the system, and other test engineers validating that the system makes sense. Of course some people follow the whole cycle, but not everyone. A lot of people just focus on their one area and know that inside and out.
Avionics software is embedded software with legally mandated safety and reliability concerns used in avionics. The main difference between avionic software and conventional embedded software is that the development process is required by law and is optimized for safety.
It is claimed that the process described below is only slightly slower and more costly (perhaps 15 percent) than the normal ad hoc processes used for commercial software. Since most software fails because of mistakes, eliminating the mistakes at the earliest possible step is also a relatively inexpensive and reliable way to produce software.
Why? Because it isn’t a startup with one tiny team where everyone understands everything that’s going on? You have fun doing your thing, someone has to work on the complex stuff.
OK, so we'll leave the MAX alone as that one wasn't just a software issue. Software could have handled the issue better, but yea.
I wasn't even thinking of the MAX, I was thinking about the 787 Dreamliner for it's integer overflow! In this case, if the planes are not shut down cold at least once every 248 days, the generator control units drop into failsafe mode and power to the majority of the aircraft is cut. In this case, this is 100% a software issue, an integer overflow. Something that can be either planned around, or caught and handled in a sane fashion.
I should note (as an aerospace engineer, you might be aware of already) that it's common for commercial airliners to stay at least minimally warmed up for long periods of time - pretty much unless maintenance requires it to go cold.
It was was 737 max but yeah you’re right. Essentially the software was written to automatically correct the aircrafts angle of attack if it got too high (pitching up). The reason they had to write this software for the new max aircrafts was they added larger engines to the aircraft which changed the center of mass causing the aircraft to pitch up during flight. It’s thought that on those two flights there was a malfunction in the angle of attack sensors which were reading that the plane was pitched up and susceptible to stalling. The software read this and correctly pitched it down although this put the aircraft into a dive which lead to the crashes.
Part of the problem too was Boeing sold these new aircrafts as not needing additional training. They were the same as 737 but more efficient. This made it so the pilots didn’t know how to override the software during flight.
The 787 has its own SW issues but the 737 has specific SW issues.
But you’re fundamentally correct. When the airframer stands up and says “It’s OUR airplane, you must do what we said, and only what we said, and oh by the way do it for $5M less than what you actually bid for it because a low cost competitor (who has never done software development for aerospace applications) says they can do it for $1M total.” Your management’s management says “Welp, they’re the customer so they MUST know what they’re doing!” and So it goes on down the line. The key issue in software development is that they are the very last in line to get funding, the first thing blamed for errors and delays and are consistently the only thing as to make a change after production, because it’s easier to swap out than something mechanical or attached to the plane.
106
u/Classified0 Nov 26 '19 edited Nov 26 '19
As an aerospace engineer, from what I've heard, the Boeing issue relating to the 737* Max wasn't really a software development issue. The software was designed exactly to specifications, but the specifications were designed poorly. There were a number of issues in the spec that all culminated; but none of it was due to poorly written code.
*737 not 787