This model shows an implementation of a roll axis autopilot control system, that is designed for code generation.
Generate code for a control algorithm model, integrate the generated code with an existing system, and validate simulation and executable results.
Use Eclipse™ and Cygwin™, a free software integration development environment (IDE) and free compiler, for the examples
Associate subsystems in a model with function names and files.
Reuse previously generated code by creating a cross-release software-in-the-loop (SIL) block and incorporating the block within an integration model. For more information about the
Validate generated code by using system-level S-functions or by running the code in an external environment.
Specify signals, states, and parameters for inclusion in generated code.
Call existing, external functions from a simulation or from the generated code by using the Legacy Code Tool.