Quick-Start

  1. Install via pip: pip3 install flightgear-python

  2. Write python code. See Simple FDM loop

  3. Start FlightGear with the right options:

    1. If you’re using the FDM interface:

      • --fdm=null --max-fps=30 --native-fdm=socket,out,30,localhost,5501,udp --native-fdm=socket,in,30,localhost,5502,udp

      • the 30 in the arguments must match, so that the IO and the framerate are the same

    2. If you’re using the telnet (properties) interface:

      • --telnet=socket,bi,60,localhost,5500,tcp

      • The 60 is how fast FG will check the telnet connection (I think)

  4. Run your python code!