Skip to content
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

vehicle.commands.downloads timeout #1033

Open
eminakgun opened this issue Jun 12, 2020 · 2 comments
Open

vehicle.commands.downloads timeout #1033

eminakgun opened this issue Jun 12, 2020 · 2 comments

Comments

@eminakgun
Copy link

I process as the steps,

  1. clear out the mission
    vehicle.commands.clear()
    vehicle.commands.upload()
  2. I upload a mission from GCS
  3. Read the uploaded mission
vehicle.commands.download()
vehicle.commands.wait_ready()

When called wait_ready(), it gets stuck sometimes. So I can not proceed. This issue tend to be more likely when number of waypoints are increased.
I am running ArduPlane 3.9.11 and dronekit 2.9.2. It might be related to Plane version maybe?

@eminakgun
Copy link
Author

Here what I found in the codebase indicating a fix related to downlaod method.
https://github.com/dronekit/dronekit-python/blob/master/dronekit/__init__.py#L2964
# BIG FIXME - wait for full wpt download before allowing any of the accessors to work
Can somebody explain what is meant here? Maybe I can figure out the solution and give a PR.

Btw I tried with Plane 4.0.5 firmware and looks fine tho. No errors. Maybe there are something mismatching MAVLink mission protocol or implemented differently. Any ideas?

@eminakgun
Copy link
Author

I re-implemented and tested the mission download protocol properly. #1039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant