Quick-Start
Install via
pip:pip3 install flightgear-pythonWrite python code. See Simple FDM loop
Start FlightGear with the right options:
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,udpthe
30in the arguments must match, so that the IO and the framerate are the same
If you’re using the telnet (properties) interface:
--telnet=socket,bi,60,localhost,5500,tcpThe
60is how fast FG will check the telnet connection (I think)--allow-nasal-from-sockets(only needed forTelnetConnection.run_nasal())
Run your python code!