]> git.mxchange.org Git - flightgear.git/blob - src/FDM/LaRCsim/c172_init.c
Initial revision
[flightgear.git] / src / FDM / LaRCsim / c172_init.c
1 /***************************************************************************
2
3         TITLE:  navion_init.c
4         
5 ----------------------------------------------------------------------------
6
7         FUNCTION:       Initializes navion math model
8
9 ----------------------------------------------------------------------------
10
11         MODULE STATUS:  developmental
12
13 ----------------------------------------------------------------------------
14
15         GENEALOGY:      Renamed navion_init.c originally created on 930111 by Bruce Jackson
16
17 ----------------------------------------------------------------------------
18
19         DESIGNED BY:    EBJ
20         
21         CODED BY:       EBJ
22         
23         MAINTAINED BY:  EBJ
24
25 ----------------------------------------------------------------------------
26
27         MODIFICATION HISTORY:
28         
29         DATE    PURPOSE                                         BY
30
31         950314  Removed initialization of state variables, since this is
32                 now done (version 1.4b1) in ls_init.            EBJ
33         950406  Removed #include of "shmdefs.h"; shmdefs.h is a duplicate
34                 of "navion.h". EBJ
35         
36         CURRENT RCS HEADER:
37
38 ----------------------------------------------------------------------------
39
40         REFERENCES:
41
42 ----------------------------------------------------------------------------
43
44         CALLED BY:
45
46 ----------------------------------------------------------------------------
47
48         CALLS TO:
49
50 ----------------------------------------------------------------------------
51
52         INPUTS:
53
54 ----------------------------------------------------------------------------
55
56         OUTPUTS:
57
58 --------------------------------------------------------------------------*/
59 #include "ls_types.h"
60 #include "ls_generic.h"
61 #include "ls_cockpit.h"
62 #include "ls_constants.h"
63
64 void model_init( void ) {
65
66   Throttle[3] = 0.2; Rudder_pedal = 0; Lat_control = 0; Long_control = 0;
67   
68   Dx_pilot = 0; Dy_pilot = 0; Dz_pilot = 0;
69   Mass=2300*INVG;
70   I_xx=948;
71   I_yy=1346;
72   I_zz=1967;
73   I_xz=0;
74   
75   
76 }