1 /*******************************************************************************
7 ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
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
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
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.
23 Further information about the GNU General Public License can also be found on
24 the world wide web at http://www.gnu.org.
27 --------------------------------------------------------------------------------
30 ********************************************************************************
32 *******************************************************************************/
37 #define MAX_ENGINES 10
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.30"
60 #define HPTOFTLBSSEC 550
61 #define METERS_TO_FEET 3.2808
68 #define FG_ALPHADOT 32
70 #define FG_BETADOT 128
71 #define FG_PITCHRATE 256
72 #define FG_ROLLRATE 512
73 #define FG_YAWRATE 1024
75 #define FG_ALTITUDE 4096
76 #define FG_BI2VEL 8192
77 #define FG_CI2VEL 16384
78 #define FG_ELEVATOR_POS 32768L
79 #define FG_AILERON_POS 65536L
80 #define FG_RUDDER_POS 131072L
81 #define FG_SPDBRAKE_POS 262144L
82 #define FG_SPOILERS_POS 524288L
83 #define FG_FLAPS_POS 1048576L
84 #define FG_ELEVATOR_CMD 2097152L
85 #define FG_AILERON_CMD 4194304L
86 #define FG_RUDDER_CMD 8388608L
87 #define FG_SPDBRAKE_CMD 16777216L
88 #define FG_SPOILERS_CMD 33554432L
89 #define FG_FLAPS_CMD 67108864L
90 #define FG_THROTTLE_CMD 134217728L
91 #define FG_THROTTLE_POS 268435456L
92 #define FG_HOVERB 536870912L
93 #define FG_PITCH_TRIM_CMD 1073741824L
95 /******************************************************************************/