]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/FGDefs.h
More JSBSim updates.
[flightgear.git] / src / FDM / JSBSim / FGDefs.h
1 /*******************************************************************************
2  
3  Header:       FGDefs.h
4  Author:       Jon S. Berndt
5  Date started: 02/01/99
6  
7  ------------- Copyright (C) 1999  Jon S. Berndt (jsb@hal-pc.org) -------------
8  
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13  
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  details.
18  
19  You should have received a copy of the GNU General Public License along with
20  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21  Place - Suite 330, Boston, MA  02111-1307, USA.
22  
23  Further information about the GNU General Public License can also be found on
24  the world wide web at http://www.gnu.org.
25  
26 HISTORY
27 --------------------------------------------------------------------------------
28 02/01/99  JSB   Created
29  
30 ********************************************************************************
31 SENTRY
32 *******************************************************************************/
33
34 #ifndef FGDEFS_H
35 #define FGDEFS_H
36
37 #define MAX_ENGINES     10
38 #define MAX_TANKS       30
39 #define GRAVITY         32.174
40 #define INVGRAVITY      0.031081
41 #define EARTHRAD        20925650.00       // feet, equatorial
42 #define OMEGAEARTH      7.2685E-3         // rad/sec
43 #define EARTHRADSQRD    437882827922500.0
44 #define ONESECOND       4.848136811E-6
45 #define ECCENT          0.996647186
46 #define ECCENTSQRD      0.99330561
47 #define INVECCENTSQRD   1.0067395
48 #define INVECCENTSQRDM1 0.0067395
49 #define Reng            1716             //Specific Gas Constant,ft^2/(sec^2*R)
50 #define SHRATIO         1.4              //Specific Heat Ratio
51 #define RADTODEG        57.29578
52 #define DEGTORAD        1.745329E-2
53 #define KTSTOFPS        1.68781
54 #define FPSTOKTS        0.592484
55 #define INCHTOFT        0.08333333
56 #define OMEGA_EARTH .00007272205217  
57 #define NEEDED_CFG_VERSION "1.38"
58 #define JSBSIM_VERSION  "0.8.2"
59
60 #define HPTOFTLBSSEC 550
61 #define METERS_TO_FEET 3.2808
62
63 enum eParam {
64   FG_UNDEF = 0,
65   FG_TIME,
66   FG_QBAR,
67   FG_WINGAREA,
68   FG_WINGSPAN,
69   FG_CBAR,
70   FG_ALPHA,
71   FG_ALPHADOT,
72   FG_BETA,
73   FG_BETADOT,
74   FG_PITCHRATE,
75   FG_ROLLRATE,
76   FG_YAWRATE,
77   FG_MACH,
78   FG_ALTITUDE,
79   FG_BI2VEL,
80   FG_CI2VEL,
81   FG_ELEVATOR_POS,
82   FG_AILERON_POS,
83   FG_RUDDER_POS,
84   FG_SPDBRAKE_POS,
85   FG_SPOILERS_POS,
86   FG_FLAPS_POS,
87   FG_ELEVATOR_CMD,
88   FG_AILERON_CMD,
89   FG_RUDDER_CMD,
90   FG_SPDBRAKE_CMD,
91   FG_SPOILERS_CMD,
92   FG_FLAPS_CMD,
93   FG_THROTTLE_CMD,
94   FG_THROTTLE_POS,
95   FG_ACTIVE_ENGINE,
96   FG_HOVERB,
97   FG_PITCH_TRIM_CMD,
98   FG_LEFT_BRAKE_CMD,
99   FG_CENTER_BRAKE_CMD,
100   FG_RIGHT_BRAKE_CMD,
101   FG_SET_LOGGING
102 };
103
104 enum eAction {
105   FG_RAMP  = 1,
106   FG_STEP  = 2,
107   FG_EXP   = 3
108 };
109
110 enum eType {
111   FG_VALUE = 1,
112   FG_DELTA = 2,
113   FG_BOOL  = 3
114 };
115
116 /******************************************************************************/
117 #endif
118