-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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.flush() not working as intended #276
Comments
@jamesbellaero Thanks for this. It is a duplicate of #227. @tcr3dr I agree with @jamesbellaero that this is a critical defect. It has certainly cost me a LOT of time when writing examples. I am not sure of the correct solution - do you think we could get some time on it in the coming week? |
@jamesbellaero As @tcr3dr says above, we think this is fixed in dkpy2.0. Can you please confirm? |
I'm not currently in the position to do so as I'm back in school from my
|
Thanks @jamesbellaero. When you're able to recreate it, feel free to re-open this issue or submit a new one—we are committed to ironing out the bugs in DroneKit Python for this next release and would love your input. |
There are two issues with the flush method that I have found:
To get around this issue, I call time.sleep(vehicle.commands.count/2) immediately after calling vehicle.flush(). However, if flush() worked properly it would automatically wait until receiving confirmation from the quad that all waypoints had been written before continuing, much like wait_valid() does.
I would have figured that simply calling flush() would handle the reupload without me having to change anything, but it doesn't.
These are important issues which need to be solved before lots of people start using Dronekit in real applications. Either fix the flush method add new methods to achieve the required functionality.
The text was updated successfully, but these errors were encountered: