]> git.mxchange.org Git - flightgear.git/blob - LaRCsim/ls_model.c
ff8fd20f17b24d9cbc658264542913ba44dc2d59
[flightgear.git] / LaRCsim / ls_model.c
1 /***************************************************************************
2
3         TITLE:          ls_model()      
4         
5 ----------------------------------------------------------------------------
6
7         FUNCTION:       Model loop executive
8
9 ----------------------------------------------------------------------------
10
11         MODULE STATUS:  developmental
12
13 ----------------------------------------------------------------------------
14
15         GENEALOGY:      Created 15 October 1992 as part of LaRCSIM project
16                         by Bruce Jackson.
17
18 ----------------------------------------------------------------------------
19
20         DESIGNED BY:    Bruce Jackson
21         
22         CODED BY:       Bruce Jackson
23         
24         MAINTAINED BY:  maintainer
25
26 ----------------------------------------------------------------------------
27
28         MODIFICATION HISTORY:
29         
30         DATE    PURPOSE                                         BY
31
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
35                 is requested.                                   EBJ
36
37         CURRENT RCS HEADER INFO:
38 $Header$
39 $Log$
40 Revision 1.1  1997/05/29 00:09:58  curt
41 Initial Flight Gear revision.
42
43  * Revision 1.3  1995/03/06  18:49:46  bjax
44  * Added dt and initialize flag parameters to subroutine calls. This will
45  * support trim routine (to allow single throttle setting to drive
46  * all four throttle positions, for example, if initialize is TRUE).
47  *
48  * Revision 1.2  1993/03/10  06:38:09  bjax
49  * Added additional calls: inertias() and subsystems()... EBJ
50  *
51  * Revision 1.1  92/12/30  13:19:08  bjax
52  * Initial revision
53  * 
54
55 ----------------------------------------------------------------------------
56
57         REFERENCES:
58
59 ----------------------------------------------------------------------------
60
61         CALLED BY:      ls_step (in initialization), ls_loop (planned)
62
63 ----------------------------------------------------------------------------
64
65         CALLS TO:       aero(), engine(), gear()
66
67 ----------------------------------------------------------------------------
68
69         INPUTS:
70
71 ----------------------------------------------------------------------------
72
73         OUTPUTS:
74
75 --------------------------------------------------------------------------*/
76 #include "ls_types.h"
77
78 void ls_model( SCALAR dt, int Initialize )
79
80 {
81   inertias( dt, Initialize );
82   subsystems( dt, Initialize );
83   aero( dt, Initialize );
84   engine( dt, Initialize );
85   gear( dt, Initialize );
86 }