-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
SITL test is failing: copter mode stuck on STABILIZE #1041
Comments
The problem is in |
Found the problematic commit: ArduPilot/pymavlink@1fa59ff |
On Sat, 4 Jul 2020, Pietro De Nicolao wrote:
Found the problematic commit: ***@***.***
Looks like my bad. What version of ardupilot's being run in SITL by
default?!
I tend to run master ArduPilot when I'm using dronekit-python.
Fix here is probably to have dronekit-sitl pull a binary from ArduPilot's
firmware.ardupilot.org; I have a branch here which does that.
Peter
|
By default dronekit-sitl runs ArduPilot Copter v3.3. Probably it’s better to test against an updated firmware version as you said 👍 |
On Sun, 5 Jul 2020, Pietro De Nicolao wrote:
By default dronekit-sitl runs ArduPilot Copter v3.3. Probably it’s better to test against an updated firmware version as you said 👍
dronekit/dronekit-sitl#145
So that kinda-sorta works. At least far enough for the simple_goto.py
dronekit-python example to work with no extra arguments.
Really not happy with the parameters stuff, obviously.
|
Hi, in the meantime should we revert to using 2.9.1? (I noticed there's a 2 year gap on pypi) Nevermind. I was able to uninstall pymavlink with
and then reinstall the older version with
|
Did this work for you by just reinstalling an old version of pymavlink? It wasn’t working for me. |
Yeah reverting pymavlink to 2.4.8 did the trick for me. If you are having trouble in general I would suggest running the dronekit-python/examples/vehicle_state/vehicle_state.py to check if there is a bug in your code. |
yes this reverting back to older version of pymavlink worked for me, i was having trouble in DO_SET_MODE change while executing the python script as it was stuck at stabalize, even now i can't change the mode in mavproxy but it works when i run the script i was having pymavlink 2.4.12 and |
pymavlink 2.4.14 is junk also ... reverting to 2.4.8 fixed it |
the fix doesnt work at this point, just ends up spitting a bunch of horse crap on my screen. |
AttributeError: 'MAVLink_vibration_message' object has no attribute 'instance_field' |
how to run dronekit-sitl with updated firmware version? |
Downgrading pymavlink didn't work for me on windows 11 as per #1169. It gave me the following error message: `AttributeError: 'array.array' object has no attribute 'fromstring' ` One fix is utilizing Ubuntu on your windows system. After setting up Ubuntu i downgraded pymavlink to 2.4.8 and mav_proxy to 1.7.1
I will continue my analysis on #1169 and see if i can find a solution for windows. |
I've been experiencing the same issue of telling my SITL to enter GUIDED mode, but it gets stuck in the loop waiting for the mode to change. I tried to downgrade to pymavlink==2.4.8, but I'm getting a legacy-install-failure. Has anyone experienced this? alexsharper@dhcp-10-105-11-95 ~ % sudo pip3 install pymavlink==2.4.8 × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for pymavlink did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. |
Have you been able to find a solution to this? thank you! |
I am also getting the same as above legacy-install-failure as above with Python3. I am on Windows 10. The installation works fine for python2. |
i am having trouble on multiple systems. cant seem to figure out how to get
it to work on ubuntu or my local windows machine which had it working a
year ago but now its caput and im tooo scared to test it on my drone
because i need to demo it for my senior project.
*Adam Dabdoub*
Software Developer
c: 513.886.0301
…On Tue, Apr 4, 2023 at 6:55 PM Mujtaba ***@***.***> wrote:
I am also getting the same as above legacy-install-failure as above with
Python3. I am on Windows 10. The installation works fine for python2.
—
Reply to this email directly, view it on GitHub
<#1041 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJKTGIN2VUEMMXXCISAJGTW7SRHJANCNFSM4OQPXHGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It works on Ubuntu for me, perhaps set up an associated Docker Image which uses Ubuntu and run your code on there? Otherwise I can set up one and I'll link it in this chat. |
I think it would be nice to have an official docker image that we can use
as a base so there less hiccups in getting into development because as it
stands, the tutorial is out of date if legacy users are having issues just
getting back into the code base.
*Adam Dabdoub*
Software Developer
c: 513.886.0301
…On Wed, Apr 5, 2023 at 8:48 AM Sarinle ***@***.***> wrote:
i am having trouble on multiple systems. cant seem to figure out how to
get it to work on ubuntu or my local windows machine which had it working a
year ago but now its caput and im tooo scared to test it on my drone
because i need to demo it for my senior project. *Adam Dabdoub* Software
Developer c: 513.886.0301
… <#m_4898225133774497299_>
On Tue, Apr 4, 2023 at 6:55 PM Mujtaba *@*.*> wrote: I am also getting
the same as above legacy-install-failure as above with Python3. I am on
Windows 10. The installation works fine for python2. — Reply to this email
directly, view it on GitHub <#1041 (comment)
<#1041 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIN2VUEMMXXCISAJGTW7SRHJANCNFSM4OQPXHGA
<https://github.com/notifications/unsubscribe-auth/AHJKTGIN2VUEMMXXCISAJGTW7SRHJANCNFSM4OQPXHGA>
. You are receiving this because you commented.Message ID: @.*>
It works on Ubuntu for me, perhaps set up an associated Docker Image which
uses Ubuntu and run your code on there?
Otherwise I can set up one and I'll link it in this chat.
—
Reply to this email directly, view it on GitHub
<#1041 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJKTGLOW3ZTUZHVMR4NE5TW7VS3JANCNFSM4OQPXHGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Can you tell me how to install the desired version of pymavlink for python2, since pip is no longer supported for python2. Thank you ! |
The SITL tests are currently failing on the master branch, both for Python 2 and Python 3.
The cause is a SITL test that's not passing: test_goto.py.
The apparent reason of the error is that the test times out when setting the mode to
GUIDED
.I managed to run the unit test locally, and I can't get the SITL to switch to
GUIDED
: the vehicle remains stuck onSTABILIZE
. The GPS and the global location seem to be ok. The Vehicle is periodically receiving heartbeat updates containing the mode flag, so it's not a reception problem.My hypothesis is that some update on the ArduPilot side, or in some dependencies, made the tests fail. From the commit history it's easy to see that the previous commits (that worked) are identical to the latest ones, which were simple documentation changes.
Any hints?
The text was updated successfully, but these errors were encountered: