In my experience (few years ago), Realtime Workshop (code generation) is an expensive software not as elegant to use as it seems in the description. Although schools might even get them for free for projects. As if you pay to get their source code, but it also creates a big main loop substituting the code in place of Simulink models (S-functions) in a not so efficient way. Besides, it is only useful if you have the models for everything you need (which means many additional costly toolboxes), and if your problem follows the normal use-case (flight simulation might even have a demo).
If there is any deviation from the normal use-case or if new code should be added, one needs to write code twice and face double as many bugs and hassles, once for C and once for TLC wrappings, not something to recommend for actual development specially because the IDE is not really helpful when more than one simple script is needed.