Skip to content

Ported sendCOMM method from py2 to py3#295

Open
dfb wants to merge 1 commit into
nasa:masterfrom
dfb:master
Open

Ported sendCOMM method from py2 to py3#295
dfb wants to merge 1 commit into
nasa:masterfrom
dfb:master

Conversation

@dfb
Copy link
Copy Markdown

@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)

feimaomiao added a commit to feimaomiao/XPlaneConnect that referenced this pull request Dec 5, 2025
This follows PR nasa#295 from the original NASA repository
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