December 17, 200421 yr Hi, I'm trying to interface Matlab with FGFS but so far I'm not getting it to communicate with each other. I'm running both software on one computer even though it recommended not to due to cpu consumption of both software.INFO:latest version of Matlab 7.0.1latest version of fgfs v0.9.6Installed Aerosim Blockset. I run FG using a batch file to get external commands through UDP port 5500:fgfs "--fg-root=program filesflightgear" "--native-fdm=socket,in,30,,5500,udp" "--fdm=external"I open up Matlab and run Aerosim blockset and once open, and I change the bank setting in Matlab. Supposedly, Flight Gear is supposed to get that command from Matlab and bank 30 degrees. However it's not doing it.I know I must be missing some easy step in the process. If anyone can please help, it would be greatly appreciated. Thanks!By the way, I just started using Flight Gear and I'm a novice Matlab user.
December 17, 200421 yr Alright..I think i'm on to something.While I have both Matlab and FlightGear open. I ran an I/O sniffer on TCP and UDP and from what it's giving me, it seems like Matlab is sending the request and flightgear is receiving the commands.However, nothing is changing in flight gear. The plane just sits with no movement. Here's the Matlab command that it should give to Flight gear:Flap=0Rudder=0Throttle=0.5Mixture=13Ignition=1Winds=[0 0 0]Reset=0Bank angle command=25Airspeed Command=25Anyone know that with these commmands, the airplane should move in flight gear?? or am I missing something?? Please help!!Here is the sample network sniff that I did:http://forums.avsim.net/user_files/100833.jpg
December 18, 200421 yr I can't help you, but I have posted a message on the FlightGear's mailing list (http://www.flightgear.org/mail) directing the developers to this thread.
December 18, 200421 yr >I can't help you, but I have posted a message on the>FlightGear's mailing list (http://www.flightgear.org/mail)>directing the developers to this thread.You might try visiting here:http://www.u-dynamics.com/home/news.htmu-dynamics makes the Aerosim blockset. One of the developers there subscribes to the JSBSim mailing list, I believe. You should be able to find a support address there.Jon
December 20, 200421 yr Thanks for the replies. I'm making progress. One step at a time.I ran matlab on a desktop and FG on a laptop to make sure there aren't any network related problems. I did a network sniff on both computers and FlightGear (running on desktop) seems to be receiving the UDP data from Matlab (running on laptop).Is there a cheat button that automatically puts the plane on air and leveled. I thought I remember coming across a shift+key combo to do that.I'm thinking that maybe because the plane is sitting on the ground, the commands sent by matlab are meant to be for a plane off-ground.
December 21, 200421 yr Replies to your earlier problem: http://baron.flightgear.org/pipermail/flig...ber/009861.html
Create an account or sign in to comment