]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/FGDefs.h
05b5cc79f777ea13e5309920fad32ecaec422201
[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 NEEDED_CFG_VERSION "1.30"
58
59 #define HPTOFTLBSSEC 550
60 #define METERS_TO_FEET 3.2808
61
62 #define FG_QBAR           1
63 #define FG_WINGAREA       2
64 #define FG_WINGSPAN       4
65 #define FG_CBAR           8
66 #define FG_ALPHA          16
67 #define FG_ALPHADOT       32
68 #define FG_BETA           64
69 #define FG_BETADOT        128
70 #define FG_PITCHRATE      256
71 #define FG_ROLLRATE       512
72 #define FG_YAWRATE        1024
73 #define FG_MACH           2048
74 #define FG_ALTITUDE       4096
75 #define FG_BI2VEL         8192
76 #define FG_CI2VEL         16384
77 #define FG_ELEVATOR_POS   32768L
78 #define FG_AILERON_POS    65536L
79 #define FG_RUDDER_POS     131072L
80 #define FG_SPDBRAKE_POS   262144L
81 #define FG_SPOILERS_POS   524288L
82 #define FG_FLAPS_POS      1048576L
83 #define FG_ELEVATOR_CMD   2097152L
84 #define FG_AILERON_CMD    4194304L
85 #define FG_RUDDER_CMD     8388608L
86 #define FG_SPDBRAKE_CMD   16777216L
87 #define FG_SPOILERS_CMD   33554432L
88 #define FG_FLAPS_CMD      67108864L
89 #define FG_THROTTLE_CMD   134217728L
90 #define FG_THROTTLE_POS   268435456L
91 #define FG_HOVERB         536870912L
92 #define FG_PITCH_TRIM_CMD  1073741824L
93
94 /******************************************************************************/
95 #endif
96