charlylima / xplaneudp Goto Github PK
View Code? Open in Web Editor NEWExamples how get data from X-Plane Flight Simulator via Network Interface.
Examples how get data from X-Plane Flight Simulator via Network Interface.
Hello, I want to make a simple zibo737's MCP controler base on python, could you write some example code? Just change the heading.
Can someone help me with how to send a command to X11.
Thanks.
Hi,
Trying the code with X-Plane 11.55 on Windows 11.
Only one dataref (the first in the list) is returned, I added debug to print numvalues and it always shows 1 even though I have added 3.
This happens with both XPlaneUDP.py and XPRequestDRefs.py
The XPlaneUDPunittest.py then fails when run. Screenshots attached.
Obviously this code has been running great previously. Has XPlane changed the way it returns DRefs? Any ideas welcome, thanks!
I'm running XPlane10UdpRequestDataRefs.py on Windows with xplane 11.
It fails at line if(header!=b"RREFO"):
- the first 5 returned bytes are 'RREF,"
Am I doing something wrong?
Where does XplaneUDP come into the equation - i'm trying to communicate with xplane 11.
C:\ProgramData\Anaconda3\python.exe "C:\Program Files\JetBrains\PyCharm 2017.2\helpers\pycharm_jb_nosetest_runner.py" --path C:/Users/xuhao/Desktop/FlightDevelop/XPlaneUDP/XPlaneUdp_Unittest.py
Testing started at 16:57 ...
Launching Nosetest with arguments C:\Program Files\JetBrains\PyCharm 2017.2\helpers\pycharm_jb_nosetest_runner.py C:/Users/xuhao/Desktop/FlightDevelop/XPlaneUDP/XPlaneUdp_Unittest.py in C:\Users\xuhao\Desktop\FlightDevelop\XPlaneUDP
E
Traceback (most recent call last):
File "C:\Users\xuhao\Desktop\FlightDevelop\XPlaneUDP\XPlaneUdp_Unittest.py", line 14, in test1
beacon = xp.FindIp()
File "C:\Users\xuhao\Desktop\FlightDevelop\XPlaneUDP\XPlaneUdp.py", line 113, in FindIp
sock.bind((self.MCAST_GRP, self.MCAST_PORT))
OSError: [WinError 10049] 在其上下文中,该请求的地址无效。
Ran 1 test in 0.004s
FAILED (errors=1)
Error
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "C:\ProgramData\Anaconda3\lib\unittest\case.py", line 601, in run
testMethod()
File "C:\Users\xuhao\Desktop\FlightDevelop\XPlaneUDP\XPlaneUdp_Unittest.py", line 14, in test1
beacon = xp.FindIp()
File "C:\Users\xuhao\Desktop\FlightDevelop\XPlaneUDP\XPlaneUdp.py", line 113, in FindIp
sock.bind((self.MCAST_GRP, self.MCAST_PORT))
OSError: [WinError 10049] 在其上下文中,该请求的地址无效。
Process finished with exit code 1
Hi,
I'm cheking the script XPlane10UdpRequestDataRefs.py but for any reason after "data, addr = sock.recvfrom(1024)" the program freeze...
I'm not a expert with python but could you help me?
Best regards and thank you in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.