1 // LFSGlass_data.hxx -- Define structure of LFSGlass/FG interface parameters
3 // Version by J. Wojnaroski for interface to Open Glass Displays
5 // Modified 02/12/01 - Update engine structure for multi-engine models
6 // - Added data preamble to id msg types
8 // Modified 01/23/02 - Converted portions of the Engine and Gear accesssors to properties
9 // - Removed data from navigation functions. Glass provides own
11 // This file defines the class/structure of the UDP packet that sends
12 // the simulation data created by FlightGear to the glass displays. It
13 // is required to "sync" the data types contained in the packet
15 // This program is free software; you can redistribute it and/or
16 // modify it under the terms of the GNU General Public License as
17 // published by the Free Software Foundation; either version 2 of the
18 // License, or (at your option) any later version.
20 // This program is distributed in the hope that it will be useful, but
21 // WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 // General Public License for more details.
25 // You should have received a copy of the GNU General Public License
26 // along with this program; if not, write to the Free Software
27 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
30 #ifndef _LFSGlass_DATA_HXX
31 #define _LFSGlass_DATA_HXX
34 # error This library requires C++
37 const int OGC_VERSION = 4;
39 class FGLFSGlassData {
43 // defines msg types and contents. The msg_content is used as a 'pointer' to
44 // a predefined set of msg strings
64 double altitude_agl; // this can also be the radar altimeter
69 double v_keas; // equivalent airspeed in knots
71 // Data used by the FMC and autopilots
82 // Control surface positions
94 // gear positions 0 = up and 1 = down The 747 has 5 wheel bogey assemblies
99 double gear_left_rear;
100 double gear_right_rear;
101 double parking_brake;
102 bool wow_main; // logical and of main gear
106 double rpm[4]; // this is for pistons, jets see below
107 double n1_turbine[4];
110 double n2_turbine[4];
112 double man_pressure[4];
113 double oil_pressure[4];
115 double oil_quantity[4];
116 double hyd_pressure[4];
119 double prop_advance[4];
125 // Pressures and temperatures
127 double static_temperature;
128 double total_temperature;
129 double static_pressure;
130 double total_pressure;
131 double dynamic_pressure;
133 // more environmental data
136 double sea_level_pressure;
139 #endif // _LFSGlass_HXX