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 --------------------------------------------------------------------------*/
72 /* Define application-wide macros */
74 #define PATHNAME "LARCSIMPATH"
76 #define NIL_POINTER 0L
79 /* Define constants (note: many factors will need to change for other
80 systems of measure) */
82 /* Value of Pi from ref [3] */
83 #define PI 3.14159265358979323846264338327950288419716939967511
85 /* Value of earth radius from [8], ft */
86 #define EQUATORIAL_RADIUS 20925650.
87 #define RESQ 437882827922500.
89 /* Value of earth flattening parameter from ref [8]
93 EPS = sqrt(1-(1-f)^2) */
95 #define FP .003352813178
97 #define EPS .081819221
98 #define INVG .031080997
100 /* linear velocity of earth at equator from w*R; w=2pi/24 hrs, in ft/sec */
101 #define OMEGA_EARTH .00007272205217
103 /* miscellaneous units conversions (ref [7]) */
104 #define V_TO_KNOTS 0.5921
105 #define DEG_TO_RAD 0.017453292
106 #define RAD_TO_DEG 57.29577951
107 #define FT_TO_METERS 0.3048
108 #define METERS_TO_FT 3.2808
110 #define R_TO_K 0.55555556
111 #define NSM_TO_PSF 0.02088547
112 #define PSF_TO_NSM 47.8801826
113 #define KCM_TO_SCF 0.00194106
114 #define SCF_TO_KCM 515.183616
117 /* ENGLISH Atmospheric reference properties [6] */
118 #define SEA_LEVEL_DENSITY 0.002376888
122 /*------------------------- end of ls_constants.h -------------------------*/