]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/FGDefs.h
56ca313bf60c88e30c1b19b67acdb7a246168d36
[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 EPS             0.081819221
50 #define Reng            1716             //Specific Gas Constant,ft^2/(sec^2*R)
51 #define SHRATIO         1.4              //Specific Heat Ratio
52 #define RADTODEG        57.29578
53 #define DEGTORAD        1.745329E-2
54 #define KTSTOFPS        1.68781
55 #define FPSTOKTS        0.592484
56 #define INCHTOFT        0.08333333
57 #define OMEGA_EARTH .00007272205217  
58 #define NEEDED_CFG_VERSION "1.35"
59
60 #define HPTOFTLBSSEC 550
61 #define METERS_TO_FEET 3.2808
62
63 enum eParam {
64   FG_UNDEF = 0,
65   FG_QBAR,
66   FG_WINGAREA,
67   FG_WINGSPAN,
68   FG_CBAR,
69   FG_ALPHA,
70   FG_ALPHADOT,
71   FG_BETA,
72   FG_BETADOT,
73   FG_PITCHRATE,
74   FG_ROLLRATE,
75   FG_YAWRATE,
76   FG_MACH,
77   FG_ALTITUDE,
78   FG_BI2VEL,
79   FG_CI2VEL,
80   FG_ELEVATOR_POS,
81   FG_AILERON_POS,
82   FG_RUDDER_POS,
83   FG_SPDBRAKE_POS,
84   FG_SPOILERS_POS,
85   FG_FLAPS_POS,
86   FG_ELEVATOR_CMD,
87   FG_AILERON_CMD,
88   FG_RUDDER_CMD,
89   FG_SPDBRAKE_CMD,
90   FG_SPOILERS_CMD,
91   FG_FLAPS_CMD,
92   FG_THROTTLE_CMD,
93   FG_THROTTLE_POS,
94   FG_HOVERB,
95   FG_PITCH_TRIM_CMD
96 };
97
98 /******************************************************************************/
99 #endif
100