]> git.mxchange.org Git - flightgear.git/blob - src/FDM/LaRCsim/c172_init.c
Adds a basic FDM model for LaRCsim debugging purposes.
[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 #include "c172_aero.h"
64
65 void c172_init( void ) {
66
67   Throttle[3] = 0.2; 
68   
69   Dx_pilot = 0; Dy_pilot = 0; Dz_pilot = 0;
70   Mass=2300*INVG;
71   I_xx=948;
72   I_yy=1346;
73   I_zz=1967;
74   I_xz=0;
75
76
77   Flap_Position=Flap_handle;
78   Flaps_In_Transit=0;
79
80
81   
82   
83 }