1 /***************************************************************************
5 ----------------------------------------------------------------------------
7 FUNCTION: LaRCSim constants definition header file
9 ----------------------------------------------------------------------------
11 MODULE STATUS: developmental
13 ----------------------------------------------------------------------------
15 GENEALOGY: Created 15 DEC 1993 by Bruce Jackson; was part of
16 old ls_eom.h header file
18 ----------------------------------------------------------------------------
20 DESIGNED BY: B. Jackson
24 MAINTAINED BY: guess who
26 ----------------------------------------------------------------------------
32 ----------------------------------------------------------------------------
36 [ 1] McFarland, Richard E.: "A Standard Kinematic Model
37 for Flight Simulation at NASA-Ames", NASA CR-2497,
40 [ 2] ANSI/AIAA R-004-1992 "Recommended Practice: Atmos-
41 pheric and Space Flight Vehicle Coordinate Systems",
44 [ 3] Beyer, William H., editor: "CRC Standard Mathematical
45 Tables, 28th edition", CRC Press, Boca Raton, FL, 1987,
48 [ 4] Dowdy, M. C.; Jackson, E. B.; and Nichols, J. H.:
49 "Controls Analysis and Simulation Test Loop Environ-
50 ment (CASTLE) Programmer's Guide, Version 1.3",
51 NATC TM 89-11, 30 March 1989.
53 [ 5] Halliday, David; and Resnick, Robert: "Fundamentals
54 of Physics, Revised Printing", Wiley and Sons, 1974.
57 [ 6] Anon: "U. S. Standard Atmosphere, 1962"
59 [ 7] Anon: "Aeronautical Vest Pocket Handbook, 17th edition",
60 Pratt & Whitney Aircraft Group, Dec. 1977
62 [ 8] Stevens, Brian L.; and Lewis, Frank L.: "Aircraft
63 Control and Simulation", Wiley and Sons, 1992.
66 --------------------------------------------------------------------------*/
76 /* Define application-wide macros */
78 #define PATHNAME "LARCSIMPATH"
80 #define NIL_POINTER 0L
83 /* Define constants (note: many factors will need to change for other
84 systems of measure) */
86 /* Value of Pi from ref [3] */
87 #define LS_PI 3.14159265358979323846264338327950288419716939967511
89 /* Value of earth radius from [8], ft */
90 #define EQUATORIAL_RADIUS 20925650.
91 #define RESQ 437882827922500.
93 /* Value of earth flattening parameter from ref [8]
97 EPS = sqrt(1-(1-f)^2) */
99 #define FP .003352813178
101 #define EPS .081819221
102 #define INVG .031080997
104 /* linear velocity of earth at equator from w*R; w=2pi/24 hrs, in ft/sec */
105 #define OMEGA_EARTH .00007272205217
107 /* miscellaneous units conversions (ref [7]) */
108 #define V_TO_KNOTS 0.5921
109 #define DEG_TO_RAD 0.017453292
110 #define RAD_TO_DEG 57.29577951
111 #define FT_TO_METERS 0.3048
112 #define METERS_TO_FT 3.2808
114 #define R_TO_K 0.55555556
115 #define NSM_TO_PSF 0.02088547
116 #define PSF_TO_NSM 47.8801826
117 #define KCM_TO_SCF 0.00194106
118 #define SCF_TO_KCM 515.183616
121 /* ENGLISH Atmospheric reference properties [6] */
122 #define SEA_LEVEL_DENSITY 0.002376888
127 #endif /* _LS_CONSTANTS_H */
130 /*------------------------- end of ls_constants.h -------------------------*/