Skip to content

Conversation

@dfb
Copy link

@dfb dfb commented Feb 15, 2023

I needed to be able to send commands from Python and so I looked through some of the older tickets and found that someone had submitted a PR for it, but upon further investigation, it looks like the latest released already includes support for it in the plugin itself, and also in the python2 client, so this PR is simply adding support to the python3 client.

An example that I verified works:

import xpc
with xpc.XPlaneConnect() as client:
    for i in range(20):
        client.sendCOMM('sim/GPS/g430n1_page_dn')
        time.sleep(0.05)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant