X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2Fopengc.hxx;h=e22871d06b926da071c9741f742d0455f61d4e19;hb=b17e1bb7c081f2dd03eae7d75079680234cba79c;hp=33266cc6dbb70cf001402009acc70581546cfeae;hpb=a69e2cc976f4e0b762572a6fc3f34f32c46b08d5;p=flightgear.git diff --git a/src/Network/opengc.hxx b/src/Network/opengc.hxx index 33266cc6d..e22871d06 100644 --- a/src/Network/opengc.hxx +++ b/src/Network/opengc.hxx @@ -1,4 +1,11 @@ -// opengc.hxx -- + +//// opengc.hxx - Network interface program to send sim data onto a LAN +// +// Created by: J. Wojnaroski -- castle@mminternet.com +// Date: 21 Nov 2001 +// +// +// Adapted from original network code developed by C. Olson // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -24,14 +31,34 @@ #include STL_STRING #include +#include
#include "protocol.hxx" #include "opengc_data.hxx" -class FGOpenGC : public FGProtocol, public FGInterface, public FGEngInterface { +class FGOpenGC : public FGProtocol, public FGInterface { ogcFGData buf; int length; + + SGPropertyNode *press_node; + SGPropertyNode *temp_node; + SGPropertyNode *wind_dir_node; + SGPropertyNode *wind_speed_node; + SGPropertyNode *epr0_node; + + // Control surfaces + SGPropertyNode *p_left_aileron; + SGPropertyNode *p_right_aileron; + SGPropertyNode *p_elevator; + SGPropertyNode *p_elevator_trim; + SGPropertyNode *p_rudder; + SGPropertyNode *p_flaps; + SGPropertyNode *p_flaps_cmd; + + // Aero numbers + SGPropertyNode *p_alphadot; + SGPropertyNode *p_betadot; public: @@ -47,9 +74,10 @@ public: // close the channel bool close(); - + void collect_data( const FGInterface *fdm, ogcFGData *data ); }; #endif // _FG_OPENGC_HXX +