Skip to content
James Goppert edited this page Mar 29, 2012 · 1 revision

This setup allows FlightGear to visualize any ScicosLab block diagram with the jsbsimcomm block. A demo is "EasyStar Backside Autopilot Design."

Enabling FlightGear Communications in the Scicoslab Block

To enable flight gear communications you must:

  • select a port
  • hostname
  • set enable FlightGear comm to 1 in the jsbsimcomm dialog box
  • follow the instructions in the following sections for starting FlightGear in a mode ready to receive the packets from ScicosLab

Linux FlightGear setup

Launch FlightGear with the following command:

fgfs --fdm=external --native-fdm=socket,in,10,,6001,udp

Mac FlightGear setup

  1. Open FlightGear.
  2. Click the arrow to open Advanced Features.
  3. Click on the "Others" tab and enter the following settings into "Command-line options:"
--fdm=external --native-fdm=socket,in,10,,6001,udp

Windows FlightGear setup

  1. Open FlightGear.
  2. Select an aircraft, click Next, select a location, click Next.
  3. You may either enter command line options or choose them from a menu.

Command line options

  1. Check "Show command line options" in the bottom left corner.
  2. Type or paste the following lines into the box:
--fdm=external 
--native-fdm=socket,in,10,,6001,udp
  1. Click "Run".

Menu

  1. Click "Advanced" in the bottom right corner.
  2. Under "Flight Model," choose FDM: "External"
  3. Under "Input/Output," choose Protocol "native-fdm", click "New," set medium "Socket", direction "in", Hz "10", port "6001", and "UDP".
  4. Click "OK".
  5. Click "Run".