1
0
Fork 0
flightgear/LaRCsim/ls_model.c
1998-08-06 12:46:37 +00:00

94 lines
2.6 KiB
C

/***************************************************************************
TITLE: ls_model()
----------------------------------------------------------------------------
FUNCTION: Model loop executive
----------------------------------------------------------------------------
MODULE STATUS: developmental
----------------------------------------------------------------------------
GENEALOGY: Created 15 October 1992 as part of LaRCSIM project
by Bruce Jackson.
----------------------------------------------------------------------------
DESIGNED BY: Bruce Jackson
CODED BY: Bruce Jackson
MAINTAINED BY: maintainer
----------------------------------------------------------------------------
MODIFICATION HISTORY:
DATE PURPOSE BY
950306 Added parameters to call: dt, which is the step size
to be taken this loop (caution: may vary from call to call)
and Initialize, which if non-zero, implies an initialization
is requested. EBJ
CURRENT RCS HEADER INFO:
$Header$
$Log$
Revision 1.3 1998/08/06 12:46:39 curt
Header change.
Revision 1.2 1998/01/19 18:40:27 curt
Tons of little changes to clean up the code and to remove fatal errors
when building with the c++ compiler.
Revision 1.1 1997/05/29 00:09:58 curt
Initial Flight Gear revision.
* Revision 1.3 1995/03/06 18:49:46 bjax
* Added dt and initialize flag parameters to subroutine calls. This will
* support trim routine (to allow single throttle setting to drive
* all four throttle positions, for example, if initialize is TRUE).
*
* Revision 1.2 1993/03/10 06:38:09 bjax
* Added additional calls: inertias() and subsystems()... EBJ
*
* Revision 1.1 92/12/30 13:19:08 bjax
* Initial revision
*
----------------------------------------------------------------------------
REFERENCES:
----------------------------------------------------------------------------
CALLED BY: ls_step (in initialization), ls_loop (planned)
----------------------------------------------------------------------------
CALLS TO: aero(), engine(), gear()
----------------------------------------------------------------------------
INPUTS:
----------------------------------------------------------------------------
OUTPUTS:
--------------------------------------------------------------------------*/
#include "ls_types.h"
#include "ls_model.h"
#include "default_model_routines.h"
void ls_model( SCALAR dt, int Initialize ) {
inertias( dt, Initialize );
subsystems( dt, Initialize );
aero( dt, Initialize );
engine( dt, Initialize );
gear( dt, Initialize );
}