Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fgfs and matlab

Featured Replies

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.

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

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.

>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

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.

The cheat key doesn't work, and it hasn't been working for a long time.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.