question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SITL test is failing: copter mode stuck on STABILIZE

See original GitHub issue

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 on STABILIZE. 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?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
punkypankajcommented, Nov 8, 2020

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

pip3 uninstall pymavlink

and then reinstall the older version with

pip3 install pymavlink==2.4.8

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 reverted back to pymavkink 2.4.8 for now at least im able to run the script and need to find the issue with mavproxy

3reactions
rmccarthcommented, Jul 20, 2020

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

pip3 uninstall pymavlink

and then reinstall the older version with

pip3 install pymavlink==2.4.8
Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with Dronekit and MAVproxy - ArduPilot Discourse
I am running dronekit-sitl on Python 3 in Windows 10 (I know ... the terminal running mavproxy using “mode LAND” and through dronekit....
Read more >
dronekit/dronekit-python - Gitter
Because I am arming in Stabilize mode. If i click arm/disarm in MP, pre-arm checks fail and it doesn't arm. If arducopter is...
Read more >
Example: Guided Mode Movement and Commands (Copter)
At time of writing, acceleration and yaw bits are ignored. Testbed settings¶. This example has been tested on Windows against SITL running both...
Read more >
Onboard Autonomous Controllability Assessment for Fixed ...
8-Failure modes tested for lack of controllability detection . ... 49-Fitted output after aileron two and elevator two are stuck neutral for run....
Read more >
Issue with linking SITL with Gazebo - Blue Robotics Software
The SITL seems to be unable to connect with the Gazebo simulation, ... This will happen if you are running without the stabilize...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found