]> git.mxchange.org Git - flightgear.git/blob - src/FDM/LaRCsim/uiuc_aero.c
Adds a basic FDM model for LaRCsim debugging purposes.
[flightgear.git] / src / FDM / LaRCsim / uiuc_aero.c
1 /***************************************************************************
2
3   TITLE:        uiuc_aero       
4                 
5 ----------------------------------------------------------------------------
6
7   FUNCTION:     aerodynamics, engine and gear model
8
9 ----------------------------------------------------------------------------
10
11   MODULE STATUS:        developmental
12
13 ----------------------------------------------------------------------------
14
15   GENEALOGY:            Equations based on Part 1 of Roskam's S&C text
16
17 ----------------------------------------------------------------------------
18
19   DESIGNED BY:          Bipin Sehgal    
20                 
21   CODED BY:             Bipin Sehgal
22                 
23   MAINTAINED BY:        Rob Deters and Glen Dimock
24
25 ----------------------------------------------------------------------------
26
27   MODIFICATION HISTORY:
28                 
29   DATE          PURPOSE                                                                                         BY
30   3/17/00   Initial test release  
31   3/09/01   Added callout to UIUC gear function.   (DPM)
32   6/18/01   Added call out to UIUC record routine (RD)
33   11/12/01  Changed from uiuc_init_aeromodel() to uiuc_initial_init(). (RD)
34   2/24/02   Added uiuc_network_routine() (GD)
35   12/11/02  Divided uiuc_network_routine into uiuc_network_recv_routine and
36             uiuc_network_send_routine (RD)
37
38 ----------------------------------------------------------------------------
39
40   CALLED BY:
41
42 ----------------------------------------------------------------------------
43
44   CALLS TO:
45
46 ----------------------------------------------------------------------------
47
48   INPUTS:       
49
50 ----------------------------------------------------------------------------
51
52   OUTPUTS:
53
54 --------------------------------------------------------------------------*/
55
56
57 #include <math.h>
58 #include "ls_types.h"
59 #include "ls_generic.h"
60 #include "ls_constants.h"
61 #include "ls_cockpit.h"
62 #include <FDM/UIUCModel/uiuc_wrapper.h>
63
64
65 void uiuc_init_2_wrapper()
66 {
67     static int init = 0;
68
69     if (init==0)
70     {
71       init = -1; 
72       uiuc_initial_init();
73     }
74 }
75
76 void uiuc_aero_2_wrapper( SCALAR dt, int Initialize ) 
77 {
78     uiuc_force_moment(dt);
79 }
80
81
82 void uiuc_wind_2_wrapper( SCALAR dt, int Initialize ) 
83 {
84     uiuc_wind_routine(dt);
85 }
86
87 void uiuc_engine_2_wrapper( SCALAR dt, int Initialize ) 
88 {
89
90     uiuc_engine_routine();
91 }
92
93
94 void uiuc_gear_2_wrapper ()
95 {
96     uiuc_gear_routine();
97 }
98
99 void uiuc_record_2_wrapper(SCALAR dt)
100 {
101   uiuc_record_routine(dt);
102 }
103
104 void uiuc_network_recv_2_wrapper()
105 {
106     uiuc_network_recv_routine();
107 }
108
109 void uiuc_network_send_2_wrapper()
110 {
111     uiuc_network_send_routine();
112 }