MAVProxy exception

Hi

I have recently installed MAVProxy and played with it a little. Upon running I get the following:

Failed to load module: No module named wp

... (and some other modules, rally,fence and terrain) but read in a post here that its because I did not install OpenCV yet.

Anyway I can still use MAVProxy and tested it with a UDP connection:

mavproxy.py --master="com27" --out=localhost:14550

which works fine, but when I want to forward it to a com port with:

mavproxy.py --master="com27" --baudrate 115200 --out="com30",115200

or similar commands the program creates an exception the moment I try to connect on the out port.

The exception:

Ready to FLY Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 808, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "C:\Python27\MAVProxy-1.3.12\MAVProxy\mavproxy.py", line 908, in main_loo
p
    (rin, win, xin) = select.select(rin, [], [], 0.01)
TypeError: argument must be an int, or have a fileno() method.

Oh, another thing! com30 that I am trying to connect to is a com0com virtual serial port.

Could anybody shed some light on this?

Many thanks!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • If I recall correctly my problem was with the select() function used in the Python code of MAVProxy. According to the documentation for the select() function, it only works for sockets on Windows, which unfortunately I am running. On Linux it works for both sockets and ports, maybe somebody with Python knowledge can fix this for us Windows guys.
    I solved my problem by creating a program that took a udp connection and converted it to a serial port.

    I noticed that your error makes no mention of select(), maybe its something else in your case?
This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…