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 {
44 SGPropertyNode *press_node;
45 SGPropertyNode *temp_node;
46 SGPropertyNode *wind_dir_node;
47 SGPropertyNode *wind_speed_node;
48 SGPropertyNode *epr0_node;
51 SGPropertyNode *p_left_aileron;
52 SGPropertyNode *p_right_aileron;
53 SGPropertyNode *p_elevator;
54 SGPropertyNode *p_elevator_trim;
55 SGPropertyNode *p_rudder;
56 SGPropertyNode *p_flaps;
57 SGPropertyNode *p_flaps_cmd;
60 SGPropertyNode *p_alphadot;
61 SGPropertyNode *p_betadot;
68 // open hailing frequencies
71 // process work for this port
77 void collect_data( const FGInterface *fdm, ogcFGData *data );
80 #endif // _FG_OPENGC_HXX