Coder Social home page Coder Social logo

xplaneudp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xplaneudp's Issues

Help

Hello, I want to make a simple zibo737's MCP controler base on python, could you write some example code? Just change the heading.

Only receiving one DataRef

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!

Screenshot XplaneUDPpy

Screenshot XPRequestDRefspy

Screenshot XplaneUDPunittest

Running XPlane10UdpRequestDataRefs.py

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.

Program tested failed on Windows

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

ERROR: test1 (XPlaneUdp_Unittest.TestXplaneUdp)

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

Win 10 and Xplane 11.50+

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.