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!
Replies
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?
Thank you for your feedback. Line 711 in the mavproxy.py code shows
(rin, win, xin) = select.select(rin, [], [], mpstate.settings.select_timeout)
I think to go forward quick I will create a Linux VM.
Have you figured out what the problem was? I currently have the same problem while running SITL and try to output the mavlink data via a serial port. I setup anything regarding this manual: http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-...
and start the simulation using the following command:
sim_vehicle.sh -j4 --map --out=COM4,57600
I get the following error message:
Exception in thread main_loop:
Traceback (most recent call last):
File "C:\Users\Stephen\git\MAVProxy\MAVProxy\build\mavproxy\out00-PYZ.pyz\thre
ading", line 810, in __bootstrap_inner
File "C:\Users\Stephen\git\MAVProxy\MAVProxy\build\mavproxy\out00-PYZ.pyz\thre
ading", line 763, in run
File "<string>", line 711, in main_loop
TypeError: argument must be an int, or have a fileno() method.