Hi all, Thanks for the help with the interface. I have it working beautifully now with 2 UDP connections as suggested. After some more tweaking Id like to contribute my FG UAV Interface code (in Java). It might save anyone doing UAV simulations with FlightGear most of the pain I went through. Where would be a good place for it?
Another question: Id like to simulate real sensor readings as closely as possible starting with an accelerometer. Real accelerometers measure a combination of orientation + acceleration. Im fully prepared to do this myself, but if theres already a FG property like this Id love to use that instead. Ive been looking at the property-tree documentation, but it's a tad incomplete :) http://wiki.flightgear.org/flightgear_wiki/index.php?title=Property_Tree Does it exist? Lorne ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curtis Olson Sent: Tuesday, April 03, 2007 12:09 PM To: FlightGear developers discussions Subject: Re: [Flightgear-devel] Help with bi-directional TCP "generic"protocol 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: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Lorne McIntosh Sent: Saturday, March 31, 2007 12:13 PM To: [email protected] 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 [email protected] 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 [email protected] 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 ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

