The Guidance, Navigation, and Control team at NASA worked with Boeing and AMA to develop the propulsion and flight control laws for the X-43A scramjet and integrate them into the onboard system. All teams collaborated on the project by applying Model-Based Design with MathWorks tools.
"There aren’t any software packages out there that can match the capabilities of MathWorks tools," says Dave Bose, vice president of modeling and simulation at AMA. "From the team’s perspective, it really was an easy decision to choose MathWorks tools."
Designing, Simulating, and Validating the Onboard Control Systems
NASA and AMA used Simulink ® to design control law gains and ensure acceptable stability margins. Simulink also helped them move quickly through the simulation stages, which included running Monte Carlo simulations on a host computer and validating the design with preflight hardware-in-the-loop (HIL) tests on real-time computers.
Engineers implemented a linear model of the flight control system in Simulink and used Control System Toolbox™ to design loop gains and analyze stability margins.
Working in Simulink, AMA developed sophisticated nonlinear models of the entire vehicle and subsystems, including a six-degree-of-freedom (6 DOF) plant environment, control systems with complex filters, high-fidelity actuator models, and detailed sensor representations. They used MATLAB and Simulink to reconcile those models with actual flight data.
"Building algorithms in Simulink is much easier than in Fortran because you’re building subsystems instead of subroutines, and these are more intuitive to organize," says Luis Miranda, systems analyst at Boeing. "Also, I can’t think of a more efficient way to deliver software requirements than with a Simulink model."
Engineers from AMA and NASA used MATLAB and Simulink to model and simulate the separation event to ensure that the booster’s adaptor and the research vehicle did not make contact. They acquired sensor data from ground tests on the separation pistons and used MATLAB to measure and analyze test data and Optimization Toolbox™ to match parameters to the data. They then used the data to develop an accurate model in Simulink, which served as the truth model for validating simulations and preflight test results.
Generating and Integrating the C Code into the Flight Management Unit (FMU)
NASA and Boeing used Simulink Coder™ to automatically generate C code for the X-43A’s propulsion and flight control systems. They used the code to run 6 DOF simulations for non-real-time actuator testing and HIL tests. The automatically generated code also ran inside the Honeywell H-764 FMU that flew on the X-43A.
Engineers used Simulink Coder to generate the header, registration, parameter, and main algorithm C files. Because the parameters were easy to access, they inspected them for the flight control and propulsion systems during testing and on the day of flight.
Boeing automated two major testing stages with Simulink and Simulink Coder: component testing and HIL testing. They validated the software requirements and performed structural coverage analysis, avoiding inspections of the automatically generated code while achieving a transparent verification and validation process.
"To make system modifications, we updated the Simulink diagram, automatically generated the code, installed the generated code, and hit the build button," says Paul Seigman, software engineer at Boeing PhantomWorks. "We experienced a significant increase in productivity and avoided the pitfalls of hand coding."
For component testing, Boeing used Simulink to run tests with their stimulus models on the host processor before components were integrated into the embedded code. Using Simulink Coder, they then automatically generated C code and checked for potential differences between the simulation results and the generated code.
For HIL testing, they tested the functionality of the full software application, including the automatically generated code on the FMU. Boeing used an inertial simulator as a flight table that fed velocity data into the FMU, which instructed it to “fly” at various speeds. During the HIL tests, engineers monitored the entire flight trajectory from boost to separation to splash down, collecting telemetry data off the FMU bus controller for postprocessing with MATLAB.
Boeing also used Simulink Coder to provide NASA with build updates to meet various milestones of the vehicle integration and testing.
"We wouldn’t have been able to provide NASA with interim builds as efficiently without automatically generated code because the control laws changed frequently," says Seigman. "We never found any errors in the automatically generated code, so we were confident in creating a quick prototype for NASA."
Analyzing and Postprocessing Postflight Data
To accurately estimate the vehicle’s trajectory after launch, NASA used MATLAB to build Kalman filters that removed noise from telemetry sources, such as raw inertial measurements, atmospheric conditions, and information from their GPS antennas.
To analyze the separation event, NASA used MATLAB to automate the processing of large eight-dimensional aerodynamic data tables that model the interference effects between the adaptor and research vehicle. They visualized the data with MATLAB plots and graphs.
"The size and complexity of the data posed a tough challenge," says John Martin, systems analyst at NASA. "I couldn’t have solved that problem without MATLAB."
NASA is now using MathWorks tools to advance hypersonics technology by researching ways to extend burn time and achieve higher Mach speeds for possible future missions.