From: Curtis O. <cur...@gm...> - 2007-04-03 19:09:28
|
You may want to try setting up 2 uni-directional interfaces rather than one bi-directional interface? I'm not sure if the bidirectional option has ever been implemented for socket connections? Curt. On 4/3/07, Lorne McIntosh wrote: > > I should add that I'm running FG 0.9.10, which is a year old at this > point. > Might this be fixed in the latest CVS? I'm just hesitant to go to the work > of compiling it without knowing it's been fixed... > > Lorne > > -----Original Message----- > From: fli...@li... > [mailto:fli...@li...] On Behalf Of Lorne > McIntosh > Sent: Saturday, March 31, 2007 12:13 PM > To: fli...@li... > Subject: [Flightgear-devel] Help with bi-directional TCP "generic" > protocol > > Hi all, > > I'm trying to use the "generic" protocol to interface with flightgear: > --generic=socket,bi,50,,5500,tcp,uavInterface > > After starting flightgear, I'm connecting to it with a telnet client: > telnet localhost 5500 > > It connects successfully, but I don't receive any data. I've checked with > WireShark, and indeed FG isn't sending anything after the initial TCP > handshake. Anything I type is sent ok (according to WireShark), and FG > returns an ACK for each packet. The simulation fails to respond, however. > > Any ideas? The contents of my XML file are included below. > > Thanks, > Lorne > > > ====uavInterface.xml==== > > <?xml version="1.0"?> > <PropertyList> > <generic> > > <!-- INPUT --> > <input> > > <line_separator>@</line_separator> > <var_separator>,</var_separator> > > <chunk> > <name>aileron</name> > <type>float</type> > <node>/controls/flight/aileron</node> > </chunk> > > <chunk> > <name>elevator</name> > <type>float</type> > <node>/controls/flight/elevator</node> > </chunk> > > <chunk> > <name>rudder</name> > <type>float</type> > <node>/controls/flight/rudder</node> > </chunk> > > <chunk> > <name>throttle</name> > <type>float</type> > <node>/controls/engines/engine[0]/throttle</node> > </chunk> > > </input> > > <!-- OUTPUT --> > <output> > > <line_separator>@</line_separator> > <var_separator>,</var_separator> > > <!-- Position --> > <chunk> > <name>latitude-deg</name> > <type>float</type> > <format>%f</format> > <node>/position/latitude-deg</node> > </chunk> > > <chunk> > <name>longitude-deg</name> > <type>float</type> > <format>%f</format> > <node>/position/longitude-deg</node> > </chunk> > > <chunk> > <name>altitude-ft</name> > <type>float</type> > <format>%f</format> > <node>/position/altitude-ft</node> > </chunk> > > <!-- Orientation --> > <chunk> > <name>roll-deg</name> > <type>float</type> > <format>%f</format> > <node>/orientation/roll-deg</node> > </chunk> > > <chunk> > <name>pitch-deg</name> > <type>float</type> > <format>%f</format> > <node>/orientation/pitch-deg</node> > </chunk> > > <chunk> > <name>heading-deg</name> > <type>float</type> > <format>%f</format> > <node>/orientation/heading-deg</node> > </chunk> > > </output> > > </generic> > </PropertyList> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > -- Curtis Olson - University of Minnesota - FlightGear Project http://baron.flightgear.org/~curt/ http://www.humanfirst.umn.edu/ http://www.flightgear.org Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d |