1 // opengc.hxx -- Define structure of OpenGC/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 // This file defines the class/structure of the UDP packet that sends
9 // the simulation data created by FlightGear to the glass displays. It
10 // is required to "sync" the data types contained in the packet
12 // This program is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU General Public License as
14 // published by the Free Software Foundation; either version 2 of the
15 // License, or (at your option) any later version.
17 // This program is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 // General Public License for more details.
22 // You should have received a copy of the GNU General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #ifndef _OPENGC_DATA_HXX
28 #define _OPENGC_DATA_HXX
31 # error This library requires C++
40 // defines msg types and contents. typedefs & classes are TBS
41 unsigned int version_id;
43 unsigned int msg_content;
44 unsigned short autopilot_mode;
45 unsigned short afds_armed_mode;
53 double altitude_agl; // this can also be the radar altimeter
71 double oil_pressure[4];
77 // This will require a lot of related work to build the nav
78 // database for the ND and some msg traffic both ways to display
79 // and configure nav aids, freqs, courses, etc etc. OpenGC will
80 // most likely define an FMC to hold the database and do nav stuff
83 double nav1_course_dev;
89 double nav2_course_dev;
93 // some other locations serving as place holders for user defined
94 // variables reduces the need to update FG or OpenGC code
101 #endif // _OPENGC_HXX