2 //// opengc.hxx - Network interface program to send sim data onto a LAN
4 // Created by: J. Wojnaroski -- castle@mminternet.com
8 // Adapted from original network code developed by C. Olson
10 // This program is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License as
12 // published by the Free Software Foundation; either version 2 of the
13 // License, or (at your option) any later version.
15 // This program is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // General Public License for more details.
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef _FG_OPENGC_HXX
27 #define _FG_OPENGC_HXX
29 #include <simgear/compiler.h>
33 #include <FDM/flight.hxx>
34 #include <Main/fg_props.hxx>
36 #include "protocol.hxx"
37 #include "opengc_data.hxx"
39 class FGOpenGC : public FGProtocol, public FGInterface {
45 SGPropertyNode *press_node;
46 SGPropertyNode *temp_node;
47 SGPropertyNode *wind_dir_node;
48 SGPropertyNode *wind_speed_node;
49 SGPropertyNode *mag_var_node;
52 SGPropertyNode *p_latitude;
53 SGPropertyNode *p_longitude;
54 SGPropertyNode *p_alt_node;
55 SGPropertyNode *p_altitude;
56 SGPropertyNode *p_altitude_agl;
58 SGPropertyNode *egt0_node;
59 SGPropertyNode *egt1_node;
60 SGPropertyNode *egt2_node;
61 SGPropertyNode *egt3_node;
64 SGPropertyNode *p_left_aileron;
65 SGPropertyNode *p_right_aileron;
66 SGPropertyNode *p_elevator;
67 SGPropertyNode *p_elevator_trim;
68 SGPropertyNode *p_rudder;
69 SGPropertyNode *p_flaps;
70 SGPropertyNode *p_flaps_cmd;
73 SGPropertyNode *p_alphadot;
74 SGPropertyNode *p_betadot;
81 // open hailing frequencies
84 // process work for this port
90 void collect_data( const FGInterface *fdm, ogcFGData *data );
93 #endif // _FG_OPENGC_HXX