Re: [Flightgear-devel] FW:Using FlightGear to visualize JSBSim state
I found that if I waited a little but longer so that FlightGear was completely started up, and used UDP instead of TCP that it worked. Great! -Original Message- From: Jon S. Berndt [mailto:jonsber...@comcast.net] Sent: Wednesday, October 03, 2012 6:03 AM To: 'FlightGear developers discussions' Subject: [Flightgear-devel] FW:Using FlightGear to visualize JSBSim state I've been trying to drive FlightGear from an external instance of JSBSim running, over a socket. Not having much luck at the moment. Looks like I have the correct net_fdm header (version 24). I start FlightGear like this: $ FlightGear/projects/VC90/Win32/Release/fgfs.exe --fg-root=c:/cygwin/home/jon/flightgear/fgdata --aircraft=c172p -- native-fdm=socket,in,60,,5500,tcp --fdm=external After that is started up I crank up JSBSim with an output specified in the aircraft config file like this (per the email from HDWysong): output name=localhost type=FLIGHTGEAR port=5500 rate=60/ In the JSBSim console I get this: Successfully connected to socket for output ... send: Software caused connection abort send: Software caused connection abort send: Software caused connection abort ... FlightGear immediately core dumps. Any suggestions? Jon -Original Message- From: Jon S. Berndt [mailto:jonsber...@comcast.net] Sent: Wednesday, October 03, 2012 5:20 AM To: 'Development issues' Subject: Re: [Jsbsim-devel] Using FlightGear to visualize JSBSim state That was it. Thanks. Although I did get FlightGear to start up in this mode, it core dumped when I tried to connect from JSBSim. I wonder if I need to update the net fdm header. Jon -Original Message- From: Anders Gidenstam [mailto:anders-...@gidenstam.org] Sent: Wednesday, October 03, 2012 2:03 AM To: 'Development issues' Subject: Re: [Jsbsim-devel] Using FlightGear to visualize JSBSim state On Tue, 2 Oct 2012, Jon S. Berndt wrote: Not sure it does work: FlightGear/projects/VC90/Win32/Release/fgfs.exe --fg-root=c:/cygwin/home/jon/flightgear/fgdata --aircraft=c172p native-fdm=socket,in,60,,55p --fdm=external Processing command line arguments Fatal error: Failed to open file at native-fdm=socket,in,60,,5500,tcp (received from SimGear XML Parser) Did you drop the '--' that should go before native-fdm when transcribing the command line to the message? Or are they missing there too? If it is the latter SG tried and failed to open the file native- fdm=socket,in,60,,5500,tcp. Cheers, Anders -- --- - - - - Anders Gidenstam WWW: http://gitorious.org/anders-hangar http://www.gidenstam.org/FlightGear/ --- - - - - --- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel ___ The JSBSim Flight Dynamics Model project http://www.JSBSim.org ___ - - - --- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel ___ The JSBSim Flight Dynamics Model project http://www.JSBSim.org ___ --- - -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel
[Flightgear-devel] FW:Using FlightGear to visualize JSBSim state
I've been trying to drive FlightGear from an external instance of JSBSim running, over a socket. Not having much luck at the moment. Looks like I have the correct net_fdm header (version 24). I start FlightGear like this: $ FlightGear/projects/VC90/Win32/Release/fgfs.exe --fg-root=c:/cygwin/home/jon/flightgear/fgdata --aircraft=c172p --native-fdm=socket,in,60,,5500,tcp --fdm=external After that is started up I crank up JSBSim with an output specified in the aircraft config file like this (per the email from HDWysong): output name=localhost type=FLIGHTGEAR port=5500 rate=60/ In the JSBSim console I get this: Successfully connected to socket for output ... send: Software caused connection abort send: Software caused connection abort send: Software caused connection abort ... FlightGear immediately core dumps. Any suggestions? Jon -Original Message- From: Jon S. Berndt [mailto:jonsber...@comcast.net] Sent: Wednesday, October 03, 2012 5:20 AM To: 'Development issues' Subject: Re: [Jsbsim-devel] Using FlightGear to visualize JSBSim state That was it. Thanks. Although I did get FlightGear to start up in this mode, it core dumped when I tried to connect from JSBSim. I wonder if I need to update the net fdm header. Jon -Original Message- From: Anders Gidenstam [mailto:anders-...@gidenstam.org] Sent: Wednesday, October 03, 2012 2:03 AM To: 'Development issues' Subject: Re: [Jsbsim-devel] Using FlightGear to visualize JSBSim state On Tue, 2 Oct 2012, Jon S. Berndt wrote: Not sure it does work: FlightGear/projects/VC90/Win32/Release/fgfs.exe --fg-root=c:/cygwin/home/jon/flightgear/fgdata --aircraft=c172p native-fdm=socket,in,60,,55p --fdm=external Processing command line arguments Fatal error: Failed to open file at native-fdm=socket,in,60,,5500,tcp (received from SimGear XML Parser) Did you drop the '--' that should go before native-fdm when transcribing the command line to the message? Or are they missing there too? If it is the latter SG tried and failed to open the file native- fdm=socket,in,60,,5500,tcp. Cheers, Anders -- - - - Anders Gidenstam WWW: http://gitorious.org/anders-hangar http://www.gidenstam.org/FlightGear/ - - - --- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel ___ The JSBSim Flight Dynamics Model project http://www.JSBSim.org ___ -- - --- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel ___ The JSBSim Flight Dynamics Model project http://www.JSBSim.org ___ -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Jsbsim-devel mailing list jsbsim-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsbsim-devel ___ The JSBSim Flight Dynamics Model project http://www.JSBSim.org ___ -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev