{"id":16991678,"url":"https://github.com/julianneswinoga/flightgear-python","last_synced_at":"2025-07-21T05:05:46.850Z","repository":{"id":57841681,"uuid":"520980178","full_name":"julianneswinoga/flightgear-python","owner":"julianneswinoga","description":"Interface package to the FlightGear flight simulation software aimed at simplicity","archived":false,"fork":false,"pushed_at":"2025-01-11T16:10:52.000Z","size":247,"stargazers_count":31,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T20:02:12.830Z","etag":null,"topics":["flight-simulation","flightgear","interface","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julianneswinoga.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-03T17:52:00.000Z","updated_at":"2025-06-23T09:24:13.000Z","dependencies_parsed_at":"2023-01-23T12:30:23.069Z","dependency_job_id":"5ff15cab-8eb1-472b-a0cd-70d9a140573c","html_url":"https://github.com/julianneswinoga/flightgear-python","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/julianneswinoga/flightgear-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianneswinoga%2Fflightgear-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianneswinoga%2Fflightgear-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianneswinoga%2Fflightgear-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianneswinoga%2Fflightgear-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julianneswinoga","download_url":"https://codeload.github.com/julianneswinoga/flightgear-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianneswinoga%2Fflightgear-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266242072,"owners_count":23898102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flight-simulation","flightgear","interface","python"],"created_at":"2024-10-14T03:26:54.034Z","updated_at":"2025-07-21T05:05:46.823Z","avatar_url":"https://github.com/julianneswinoga.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlightGear Python Interface\n[![Documentation Status](https://readthedocs.org/projects/flightgear-python/badge/?version=latest)](https://flightgear-python.readthedocs.io/en/latest/?badge=latest)\n[![CircleCI](https://circleci.com/gh/julianneswinoga/flightgear-python.svg?style=shield)](https://circleci.com/gh/julianneswinoga/flightgear-python)\n[![Coverage Status](https://coveralls.io/repos/github/julianneswinoga/flightgear-python/badge.svg?branch=master)](https://coveralls.io/github/julianneswinoga/flightgear-python?branch=master)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flightgear_python)](https://pypi.org/project/flightgear-python/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/flightgear-python)](https://pypistats.org/packages/flightgear-python)\n\n`flightgear-python` is an interface package to the [FlightGear flight simulation software](https://www.flightgear.org/) aimed at simplicity.\n\nInstall: `pip3 install flightgear-python`\n\nDon't know where to begin? Check out the [quick-start](https://flightgear-python.readthedocs.io/en/latest/quickstart.html) documentation.\n\nFlight Dynamics Model (FDM) example, from `examples/simple_fdm.py`\n```python\n\"\"\"\nSimple Flight Dynamics Model (FDM) example that makes the altitude increase and the plane roll in the air.\n\"\"\"\nimport time\nfrom flightgear_python.fg_if import FDMConnection\n\ndef fdm_callback(fdm_data, event_pipe):\n    if event_pipe.child_poll():\n        phi_rad_child, = event_pipe.child_recv()  # unpack tuple\n        # set only the data that we need to\n        fdm_data['phi_rad'] = phi_rad_child  # we can force our own values\n    fdm_data.alt_m = fdm_data.alt_m + 0.5  # or just make a relative change\n    return fdm_data  # return the whole structure\n\n\"\"\"\nStart FlightGear with `--native-fdm=socket,out,30,localhost,5501,udp --native-fdm=socket,in,30,localhost,5502,udp`\n(you probably also want `--fdm=null` and `--max-fps=30` to stop the simulation fighting with\nthese external commands)\n\"\"\"\nif __name__ == '__main__':  # NOTE: This is REQUIRED on Windows!\n    fdm_conn = FDMConnection()\n    fdm_event_pipe = fdm_conn.connect_rx('localhost', 5501, fdm_callback)\n    fdm_conn.connect_tx('localhost', 5502)\n    fdm_conn.start()  # Start the FDM RX/TX loop\n    \n    phi_rad_parent = 0.0\n    while True:\n        phi_rad_parent += 0.1\n        # could also do `fdm_conn.event_pipe.parent_send` so you just need to pass around `fdm_conn`\n        fdm_event_pipe.parent_send((phi_rad_parent,))  # send tuple\n        time.sleep(0.5)\n```\n\nSupported interfaces:\n- [x] [Native Protocol](https://wiki.flightgear.org/Property_Tree/Sockets) (currently only UDP)\n  - [x] Flight Dynamics Model ([`net_fdm.hxx`](https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Network/net_fdm.hxx)) version 24, 25\n  - [x] Controls ([`net_ctrls.hxx`](https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Network/net_ctrls.hxx)) version 27\n  - [x] GUI ([`net_gui.hxx`](https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Network/net_gui.hxx)) version 8\n- [ ] [Generic Protocol](https://wiki.flightgear.org/Generic_protocol)\n- [x] [Telnet](https://wiki.flightgear.org/Telnet_usage)\n- [x] [HTTP](https://wiki.flightgear.org/Property_Tree_Servers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianneswinoga%2Fflightgear-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianneswinoga%2Fflightgear-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianneswinoga%2Fflightgear-python/lists"}