-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAVProxy crashes after reinstallation, when adding new MAVLink message #623
Comments
Do a Otherwise try building/installing from Ardupilot's mavlink git repo (https://github.com/ArduPilot/mavlink) |
Thanks @stephendade,
However, now there was a new strange error, I haven't encountered before: I checked common.xml whether there has been any recent change that might cause this error, but couldn't find anything in the line numbers of the error message. Because I couldn't even execute Do you know how I can fix this issue or what might be the cause? Best Regards, |
There's someone else with the same issue as you here: ArduPilot/APWeb#16 Looks like you still need to update your git? |
Thanks for linking this @stephendade. About the git update: |
hmm, maybe try the mavlink direct from the Ardupilot repo: https://github.com/ArduPilot/mavlink rather than the submodule inside Ardupilot |
That did the trick! Now I have a However compilation of ArduCopter fails with the following error: Until I fix the extension compatibility issues, I can't confirm that MAVProxy works again on my system, but I'm confident that the new In case others also face the problem with mavproxy, here are my steps to get
you can check if it is the right
Now pymavlink 2.3.5, lxml 4.3.3 and mavproxy 1.8.6 are installed. |
umm ... perhaps I didn't explain this well. The mavlink in The mavlink in https://github.com/ArduPilot/mavlink is the one you should be installing on your laptop. It should be downloaded to a completely separate folder independant of ardupilot and built/installed on your pc/laptop. For further info: |
Now I understand. I really thought mavproxy GCS is provided as part of |
It was just so convenient for debugging, using it like |
Hi!
I added a new MAVLink message CSMAG10 to ardupilotmega.xml. Handling this with ArduCopter works, it also did work with mavproxy until a few weeks ago. I followed the steps from Section 6 in http://ardupilot.org/dev/docs/code-overview-adding-a-new-mavlink-message.html.
After uninstalling pymavlink
/ardupilot/modules/mavlink/pymavlink$ sudo pip2 uninstall pymavlink
and installing the updated version including the new MAVLink messageardupilot/modules/mavlink/pymavlink$ sudo python2 setup.py install --user
I tried to open mavproxy again:
/ardupilot$ sim_vehicle.py -v ArduCopter
and the following error has been thrown
Waiting for heartbeat from tcp:127.0.0.1:5760 MAV> Exception in thread main_loop: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/home/crowdsweeper/.local/bin/mavproxy.py", line 830, in main_loop master.wait_heartbeat(timeout=0.1) TypeError: wait_heartbeat() got an unexpected keyword argument 'timeout'
According to other forum entries ( #543 , #222 ) this seems to be a version compatibility error of pymavlink and mavproxy. I tried installing it manually with
ardupilot/modules/mavlink/pymavlink$ sudo pip2 install mavproxy --user
. After this step I could run SITL in MAVProxy again (`sim_vehicle.py'), but my new MAVLink message wasn't handled.How can I reinstall pymavlink with avoiding this
timeout
error?versions of my installed modules after the last run of
setup.py
are:pymavlink: 2.3.3
mavproxy: 1.8.6
python: 2.7.12
The text was updated successfully, but these errors were encountered: