1 /***************************************************************************
5 ----------------------------------------------------------------------------
7 FUNCTION: Model loop executive
9 ----------------------------------------------------------------------------
11 MODULE STATUS: developmental
13 ----------------------------------------------------------------------------
15 GENEALOGY: Created 15 October 1992 as part of LaRCSIM project
18 ----------------------------------------------------------------------------
20 DESIGNED BY: Bruce Jackson
22 CODED BY: Bruce Jackson
24 MAINTAINED BY: maintainer
26 ----------------------------------------------------------------------------
32 950306 Added parameters to call: dt, which is the step size
33 to be taken this loop (caution: may vary from call to call)
34 and Initialize, which if non-zero, implies an initialization
37 CURRENT RCS HEADER INFO:
40 Revision 1.1 1999/04/05 21:32:45 curt
43 Revision 1.3 1998/08/06 12:46:39 curt
46 Revision 1.2 1998/01/19 18:40:27 curt
47 Tons of little changes to clean up the code and to remove fatal errors
48 when building with the c++ compiler.
50 Revision 1.1 1997/05/29 00:09:58 curt
51 Initial Flight Gear revision.
53 * Revision 1.3 1995/03/06 18:49:46 bjax
54 * Added dt and initialize flag parameters to subroutine calls. This will
55 * support trim routine (to allow single throttle setting to drive
56 * all four throttle positions, for example, if initialize is TRUE).
58 * Revision 1.2 1993/03/10 06:38:09 bjax
59 * Added additional calls: inertias() and subsystems()... EBJ
61 * Revision 1.1 92/12/30 13:19:08 bjax
65 ----------------------------------------------------------------------------
69 ----------------------------------------------------------------------------
71 CALLED BY: ls_step (in initialization), ls_loop (planned)
73 ----------------------------------------------------------------------------
75 CALLS TO: aero(), engine(), gear()
77 ----------------------------------------------------------------------------
81 ----------------------------------------------------------------------------
85 --------------------------------------------------------------------------*/
88 #include "default_model_routines.h"
91 void ls_model( SCALAR dt, int Initialize ) {
92 inertias( dt, Initialize );
93 subsystems( dt, Initialize );
94 aero( dt, Initialize );
95 engine( dt, Initialize );
96 gear( dt, Initialize );