3 ms·
Makes you wonder about http://isocpp.org/blog/2014/12/five-popular-myths-about-c-bjarne-stroustrup http://isocpp.org/blog/2014/12/five-popular-myths-about-c-bj.
by Someone 12y ago
Makes you wonder about http://isocpp.org/blog/2014/12/five-popular-myths-about-c-bjarne-stroustrup http://isocpp.org/blog/2014/12/five-popular-myths-about-c-bj...:
"C++ has been used for demanding embedded systems and critical systems for years, examples are The Mars Rovers (scene analysis and autonomous operations), The F-35s and F-16s (flight controls), and many, many more"
Also: what does that software do? I can think of several:
- Interface with friend-or-foe detectors
- Check that the plane is in the air
But I cannot see why either would take four (more, but let's ignore that) years to develop.
- icegreentea 12y agoThe software on these planes do almost everything. There are basically no mechanical/analog linkages left in those planes. Everything the pilot does gets filtered through computer systems. Controlling weapon systems, sensors, flight, navigation, life support, communications - everything is digital. 'Check that the plane is in the air' is like the extreme under statement. Modern fighter jets are inherently dynamically unstable. They require constant adjustment to even fly level. As such, the entirely of flight control is now computer guided. For example, computer systems may apply as series of hard constraints on control surface positions/movements based on the current state (altitude, attitude, speed, rate of change of everything weight, etc). Nearly every aspect of the plane involves software.
- jokoon 12y agoI'd always prefer having a system that use analogous signals for simple things when it's possible, instead of a full software approach. Hard, thick wires and big components are more resilient and work for a long time. Of course there are task where software will be necessary and will add features, for there are simple things that should not always be digital.
- icegreentea 12y agoThe flip side is that by big thick wires and big components are add mass and volume, both of which are at a premium in planes, and fighter jets especially.
- berkut 12y agoThe F35's avionics suite is not just for controlling the aircraft (which is difficult in itself), it's for controlling, analysing and displaying the data from sensors (radars, RWR, IFF, infra-red, etc) on an integrated display system, data transfer (can transmit its own sensor info to other aircraft and receive it from others), and interfacing with a variety of NATO weapon systems. The F35's integrated system design was a (possibly too much) very audacious design, and includes over 10M lines of C++. It was questionable why C++ (instead of using existing ADA software) was used from the "re-inventing the wheel" perspective, but existing software in ADA very likely wasn't good/sophisticated enough and would have required significant re-writes anyway. Over the past 10-15 years there has also been a huge move away from ADA to more COTS languages/solutions by management in order to "save money".
- Someone 12y agoSoftware can always be improved, and this may need it, but this headline and my remark are specifically about the gun (also: the plane is flying, isn't it? If so, I assume that all those detectors, displays, etc. already work to sufficient extent) Reading http://www.thedailybeast.com/articles/2014/12/31/new-u-s-stealth-jet-can-t-fire-its-gun-until-2019.html http://www.thedailybeast.com/articles/2014/12/31/new-u-s-ste..., the plane carries so few bullets that it may be necessary to make its shots count, but even that shouldn't be that hard that it takes years and years to develop the software to shoot a gun. Caveat: I know next to nothing about what the U.S.A. expects these guns to do or what they can do. My model of what a gun does is "spew out lead when the pilot presses a button", with very few refinements. A video camera that stops shooting when the original target goes out of range and a friend-or-foe detector input that stops shooting, would be nice additions, but since the missile system works. I would guess that the 'interfacing with a variety of NATO weapon systems' part shouldn't be that hard for the gun part of the plane's software. Or are these guns almost auto-firing and do they want to shoot at enemy vehicles that are in close combat with friendly forces, and only hit enemies? Maybe even have the gun control steering of the airplane (target turns left, please follow, so that I can keep firing)? That would seriously complicate matters. Or is this a matter of bureaucracy in action in that this module missed a shipping deadline and now has to wait for the next software release for the entire plane that will come in 2019?
- OneTwoSix 12y agoThe Navy's F/A-18 aircraft runs software with at least two million lines of C++ code.
- engi_nerd 12y agoSpeaking in general terms, the software load on a 5th generation jet has much to do. It must tie multiple systems together into a coherent whole. An incomplete list of what the software must do includes: 1) Provide basic flight control services through the control laws that transform pilot intent into commands to individual flight control surfaces 2) Basic and advanced navigation (GPS, TACAN) 3) Sensor fusion. Taking in data streams from multiple types of sensors and presenting a coherent picture to the pilot of the space surrounding the aircraft, notifying the pilot of dangers and target opportunities 4) Stores management. Keeping track of the ordnance loaded on each station of the aircraft so that the flight control system can compensate as weapons are launched. Communicating with active weapons so that they have the necessary targeting information. 5) Electronic warfare, jamming, and countermeasures. 6) Operational mission plan. Fans of the old Microprose flight sims would recognize this as a set of instructions that tell the jet something like -- 1) Takeoff from Sicily 2) Destroy missile boat 3) Destroy SAM Radar at Benghazi...etc. 7) Data links to other aircraft, satellites, and ground systems. 8) Provide interfaces for future system growth and improvement. You can see that there are a vast array of data interfaces that must be managed with all kinds of operational and time constraints. Writing and testing all of this code does take much time and effort.