]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/FGDefs.h
2b1ec119c4ff88f26bb0a86d19a84d79510cf9ac
[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 EARTHRADSQRD    437882827922500.0
43 #define ONESECOND       4.848136811E-6
44 #define ECCENT          0.996647186
45 #define ECCENTSQRD      0.99330561
46 #define INVECCENTSQRD   1.0067395
47 #define INVECCENTSQRDM1 0.0067395
48 #define Reng            1716             //Specific Gas Constant,ft^2/(sec^2*R)
49 #define SHRATIO         1.4              //Specific Heat Ratio
50 #define RADTODEG        57.29578
51 #define DEGTORAD        1.745329E-2
52 #define KTSTOFPS        1.68781
53 #define FPSTOKTS        0.592484
54 #define INCHTOFT        0.08333333
55 #define OMEGA_EARTH .00007272205217  
56 #define NEEDED_CFG_VERSION "1.40"
57 #define JSBSIM_VERSION  "0.8.6"
58
59 #define HPTOFTLBSSEC 550
60 #define METERS_TO_FEET 3.2808
61
62 #if defined ( sgi ) && !defined( __GNUC__ )
63 #define __STL_FUNCTION_TMPL_PARTIAL_ORDER
64 #endif
65
66 enum eParam {
67   FG_UNDEF = 0,
68   FG_TIME,
69   FG_QBAR,
70   FG_WINGAREA,
71   FG_WINGSPAN,
72   FG_CBAR,
73   FG_ALPHA,
74   FG_ALPHADOT,
75   FG_BETA,
76   FG_BETADOT,
77   FG_PHI,
78   FG_THT,
79   FG_PSI,
80   FG_PITCHRATE,
81   FG_ROLLRATE,
82   FG_YAWRATE,
83   FG_CL_SQRD,
84   FG_MACH,
85   FG_ALTITUDE,
86   FG_BI2VEL,
87   FG_CI2VEL,
88   FG_ELEVATOR_POS,
89   FG_AILERON_POS,
90   FG_RUDDER_POS,
91   FG_SPDBRAKE_POS,
92   FG_SPOILERS_POS,
93   FG_FLAPS_POS,
94   FG_ELEVATOR_CMD,
95   FG_AILERON_CMD,
96   FG_RUDDER_CMD,
97   FG_SPDBRAKE_CMD,
98   FG_SPOILERS_CMD,
99   FG_FLAPS_CMD,
100   FG_THROTTLE_CMD,
101   FG_THROTTLE_POS,
102   FG_ACTIVE_ENGINE,
103   FG_HOVERB,
104   FG_PITCH_TRIM_CMD,
105   FG_LEFT_BRAKE_CMD,
106   FG_CENTER_BRAKE_CMD,
107   FG_RIGHT_BRAKE_CMD,
108   FG_SET_LOGGING
109 };
110
111 enum eAction {
112   FG_RAMP  = 1,
113   FG_STEP  = 2,
114   FG_EXP   = 3
115 };
116
117 enum eType {
118   FG_VALUE = 1,
119   FG_DELTA = 2,
120   FG_BOOL  = 3
121 };
122
123 /******************************************************************************/
124 #endif
125