]> git.mxchange.org Git - flightgear.git/blob - src/FDM/UIUCModel/uiuc_map_record3.cpp
I have attached revisions to the UIUC code. The revisions include the
[flightgear.git] / src / FDM / UIUCModel / uiuc_map_record3.cpp
1 /********************************************************************** 
2  
3  FILENAME:     uiuc_map_record3.cpp
4
5 ---------------------------------------------------------------------- 
6
7  DESCRIPTION:  initializes the record maps for atmospheric properties, 
8                Earth properties, engine inputs, and control inputs
9
10 ----------------------------------------------------------------------
11  
12  STATUS:       alpha version
13
14 ----------------------------------------------------------------------
15  
16  REFERENCES:   
17  
18 ----------------------------------------------------------------------
19  
20  HISTORY:      06/03/2000   file creation
21                11/12/2001   (RD) Added flap_goal and flap_pos
22
23 ----------------------------------------------------------------------
24  
25  AUTHOR(S):    Bipin Sehgal       <bsehgal@uiuc.edu>
26                Jeff Scott         <jscott@mail.com>
27                Robert Deters      <rdeters@uiuc.edu>
28  
29 ----------------------------------------------------------------------
30  
31  VARIABLES:
32  
33 ----------------------------------------------------------------------
34  
35  INPUTS:       none
36  
37 ----------------------------------------------------------------------
38  
39  OUTPUTS:      none
40  
41 ----------------------------------------------------------------------
42  
43  CALLED BY:    uiuc_initializemaps.cpp
44  
45 ----------------------------------------------------------------------
46  
47  CALLS TO:     none
48  
49 ----------------------------------------------------------------------
50  
51  COPYRIGHT:    (C) 2000 by Michael Selig
52  
53  This program is free software; you can redistribute it and/or
54  modify it under the terms of the GNU General Public License
55  as published by the Free Software Foundation.
56  
57  This program is distributed in the hope that it will be useful,
58  but WITHOUT ANY WARRANTY; without even the implied warranty of
59  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
60  GNU General Public License for more details.
61  
62  You should have received a copy of the GNU General Public License
63  along with this program; if not, write to the Free Software
64  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
65  USA or view http://www.gnu.org/copyleft/gpl.html.
66  
67 **********************************************************************/
68
69 #include "uiuc_map_record3.h"
70
71
72 void uiuc_map_record3()
73 {
74   /**************** Atmospheric Properties ***************/
75   record_map["Density"]           =      Density_record             ;
76   record_map["V_sound"]           =      V_sound_record             ;
77   record_map["Mach_number"]       =      Mach_number_record         ;
78
79   // pressures
80   record_map["Static_pressure"]   =      Static_pressure_record     ;
81   record_map["Total_pressure"]    =      Total_pressure_record      ;
82   record_map["Impact_pressure"]   =      Impact_pressure_record     ;
83   record_map["Dynamic_pressure"]  =      Dynamic_pressure_record    ;
84
85   // temperatures
86   record_map["Static_temperature"]=      Static_temperature_record  ;
87   record_map["Total_temperature"] =      Total_temperature_record   ;
88
89
90   /******************** Earth Properties *****************/
91   record_map["Gravity"]             =    Gravity_record             ;
92   record_map["Sea_level_radius"]    =    Sea_level_radius_record    ;
93   record_map["Earth_position_angle"]=    Earth_position_angle_record;
94
95   // runway positions
96   record_map["Runway_altitude"]   =      Runway_altitude_record     ;
97   record_map["Runway_latitude"]   =      Runway_latitude_record     ;
98   record_map["Runway_longitude"]  =      Runway_longitude_record    ;
99   record_map["Runway_heading"]    =      Runway_heading_record      ;
100   record_map["Radius_to_rwy"]     =      Radius_to_rwy_record       ;
101
102   // pilot relative to runway in local axis
103   record_map["D_pilot_north_of_rwy"]=    D_pilot_north_of_rwy_record;
104   record_map["D_pilot_east_of_rwy"] =    D_pilot_east_of_rwy_record ;
105   record_map["D_pilot_above_rwy"]   =    D_pilot_above_rwy_record   ;
106
107   // pilot relative to runway in runway axis
108   record_map["X_pilot_rwy"]       =      X_pilot_rwy_record         ;
109   record_map["Y_pilot_rwy"]       =      Y_pilot_rwy_record         ;
110   record_map["H_pilot_rwy"]       =      H_pilot_rwy_record         ;
111
112   // cg relative to runway in local axis
113   record_map["D_cg_north_of_rwy"] =      D_cg_north_of_rwy_record   ;
114   record_map["D_cg_east_of_rwy"]  =      D_cg_east_of_rwy_record    ;
115   record_map["D_cg_above_rwy"]    =      D_cg_above_rwy_record      ;
116
117   // cg relative to runway in runway axis
118   record_map["X_cg_rwy"]          =      X_cg_rwy_record            ;
119   record_map["Y_cg_rwy"]          =      Y_cg_rwy_record            ;
120   record_map["H_cg_rwy"]          =      H_cg_rwy_record            ;
121
122
123   /********************* Engine Inputs *******************/
124   record_map["Throttle_3"]        =      Throttle_3_record          ;
125   record_map["Throttle_pct"]      =      Throttle_pct_record        ;
126
127
128   /******************** Control Inputs *******************/
129   record_map["Long_control"]      =      Long_control_record        ;
130   record_map["Long_trim"]         =      Long_trim_record           ;
131   record_map["Long_trim_deg"]     =      Long_trim_deg_record       ;
132   record_map["elevator"]          =      elevator_record            ;
133   record_map["elevator_deg"]      =      elevator_deg_record        ;
134   record_map["Lat_control"]       =      Lat_control_record         ;
135   record_map["aileron"]           =      aileron_record             ;
136   record_map["aileron_deg"]       =      aileron_deg_record         ;
137   record_map["Rudder_pedal"]      =      Rudder_pedal_record        ;
138   record_map["rudder"]            =      rudder_record              ;
139   record_map["rudder_deg"]        =      rudder_deg_record          ;
140   record_map["Flap_handle"]       =      Flap_handle_record         ;
141   record_map["flap"]              =      flap_record                ;
142   record_map["flap_deg"  ]        =      flap_deg_record            ;
143   record_map["flap_goal"]         =      flap_goal_record           ;
144   record_map["flap_pos"]          =      flap_pos_record            ;
145 }
146
147 // end uiuc_map_record3.cpp