Re: [Flightgear-devel] Output communication problem
Hello, finally I had time to try it, and it works fine with the native-ctrls protocol. Thank you very much for your help. Best regards Jan On Fri, Dec 19, 2008 at 9:48 PM, Alex Buzin buzin6...@hotmail.com wrote: Hi! As I understand you want to get controls in Matlab from FG. But FG do not run any useable FDM and if you are trying to send data to Mathlab as FGNetFDM it can be zeros or loopback (data was sending from MathLab to FG). What protocol you are using for this connection? If data to FG is sending via native-fdm then FG mast send controls via native-ctrls protocol. With respect, Alex _ Drag n' drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/photos.aspx -- ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Output communication problem
Hi! As I understand you want to get controls in Matlab from FG. But FG do not run any useable FDM and if you are trying to send data to Mathlab as FGNetFDM it can be zeros or loopback (data was sending from MathLab to FG). What protocol you are using for this connection? If data to FG is sending via native-fdm then FG mast send controls via native-ctrls protocol. With respect, Alex _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/photos.aspx -- ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Output communication problem
Hello, I have encounterd a little bit strange thing in Flightgear v1.0.0. I'm implementing I/O communication with Flightgear using native-fdm protocol and TPC sockets. I would like implement following communication. 1. In Matlab - Simulink are computed positions, velocities etc using Simulink aircraft model. These data are consequently sent to FG (set to use external model). 2. Content of internal FG variables is sent back to Matlab to obtain control inputs from /controls/flight variables and other values which are used as inputs of aircraft model. I think it should be possible to implement this, because although when I'm using external model, control internal properties are filled with values from joystick etc. And now I'm getting to the mentioned problem. When I'm using external model in FG, data are received from Matlab and everything works fine. However there is problem sending values in opposite direction (FG to Matlab). I have observed various variables in received FGNetFDM structures and all of them were set to zero during whole simulation, but they should have been assigned nonzero values. I tried to send data from FG with external model using generic protocol and got the same result. I would like to ask whether this behavior is bug or not, and whether is there some way how to work it out. Thank you very much for your help. Jan -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel