2 //// LFSGlass.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_LFSGlass_HXX
27 #define _FG_LFSGlass_HXX
29 #include <simgear/compiler.h>
33 #include <FDM/flight.hxx>
34 #include <Main/fg_props.hxx>
36 #include "protocol.hxx"
37 #include "lfsglass_data.hxx"
39 class FGLFSGlass : public FGProtocol, public FGInterface {
45 SGPropertyNode_ptr press_node;
46 SGPropertyNode_ptr temp_node;
47 SGPropertyNode_ptr wind_dir_node;
48 SGPropertyNode_ptr wind_speed_node;
49 SGPropertyNode_ptr magvar_node;
51 // Position on the Geod
52 SGPropertyNode_ptr p_latitude;
53 SGPropertyNode_ptr p_longitude;
54 SGPropertyNode_ptr p_elev_node;
55 //SGPropertyNode_ptr p_altitude;
56 SGPropertyNode_ptr p_altitude_agl;
59 SGPropertyNode_ptr p_pitch;
60 SGPropertyNode_ptr p_bank;
61 SGPropertyNode_ptr p_heading;
62 SGPropertyNode_ptr p_yaw;
63 SGPropertyNode_ptr p_yaw_rate;
66 SGPropertyNode_ptr vel_kcas;
67 SGPropertyNode_ptr p_vvi;
68 SGPropertyNode_ptr p_mach;
71 SGPropertyNode_ptr p_left_aileron;
72 SGPropertyNode_ptr p_right_aileron;
73 SGPropertyNode_ptr p_elevator;
74 SGPropertyNode_ptr p_elevator_trim;
75 SGPropertyNode_ptr p_rudder;
76 SGPropertyNode_ptr p_flaps;
77 SGPropertyNode_ptr p_flaps_cmd;
80 SGPropertyNode_ptr p_park_brake;
83 SGPropertyNode_ptr egt0_node;
84 SGPropertyNode_ptr egt1_node;
85 SGPropertyNode_ptr egt2_node;
86 SGPropertyNode_ptr egt3_node;
88 SGPropertyNode_ptr epr0_node;
89 SGPropertyNode_ptr epr1_node;
90 SGPropertyNode_ptr epr2_node;
91 SGPropertyNode_ptr epr3_node;
93 SGPropertyNode_ptr n10_node;
94 SGPropertyNode_ptr n11_node;
95 SGPropertyNode_ptr n12_node;
96 SGPropertyNode_ptr n13_node;
98 SGPropertyNode_ptr n20_node;
99 SGPropertyNode_ptr n21_node;
100 SGPropertyNode_ptr n22_node;
101 SGPropertyNode_ptr n23_node;
103 SGPropertyNode_ptr oil_temp0;
104 SGPropertyNode_ptr oil_temp1;
105 SGPropertyNode_ptr oil_temp2;
106 SGPropertyNode_ptr oil_temp3;
109 SGPropertyNode_ptr tank0_node;
110 SGPropertyNode_ptr tank1_node;
111 SGPropertyNode_ptr tank2_node;
112 SGPropertyNode_ptr tank3_node;
113 SGPropertyNode_ptr tank4_node;
114 SGPropertyNode_ptr tank5_node;
115 SGPropertyNode_ptr tank6_node;
116 SGPropertyNode_ptr tank7_node;
117 // Boost pumps; Center tank has only override pumps; boosts are in the
118 // four main wing tanks 1->4
119 // SGPropertyNode_ptr boost1_node;
120 // SGPropertyNode_ptr boost2_node;
121 // SGPropertyNode_ptr boost3_node;
122 // SGPropertyNode_ptr boost4_node;
123 // SGPropertyNode_ptr boost5_node;
124 // SGPropertyNode_ptr boost6_node;
125 // SGPropertyNode_ptr boost7_node;
126 // SGPropertyNode_ptr boost8_node;
128 // SGPropertyNode_ptr ovride0_node;
129 // SGPropertyNode_ptr ovride1_node;
130 // SGPropertyNode_ptr ovride2_node;
131 // SGPropertyNode_ptr ovride3_node;
132 // SGPropertyNode_ptr ovride4_node;
133 // SGPropertyNode_ptr ovride5_node;
135 // SGPropertyNode_ptr x_feed0_node;
136 // SGPropertyNode_ptr x_feed1_node;
137 // SGPropertyNode_ptr x_feed2_node;
138 // SGPropertyNode_ptr x_feed3_node;
141 SGPropertyNode_ptr p_alphadot;
142 SGPropertyNode_ptr p_betadot;
149 // open hailing frequencies
152 // process work for this port
158 void collect_data( const FGInterface *fdm, FGLFSGlassData *data );
161 #endif // _FG_LFSGlass_HXX