You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two issues with the flush method that I have found:
When I add waypoints and call flush(), the entire mission requires about .25 seconds per waypoint to write in lab conditions. If I attempt to set the vehicle to auto or download the waypoints before all of them are written, the Pixhawk will not receive the full mission and 're-request' the waypoints it missed. When flying, this caused the quad to crash since it got set to auto without home being written properly and came down.
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.
After downloading waypoints from the Pixhawk with vehicle.commands.download() and vehicle.commands.wait_valid(), the Pixhawk no longer has a loaded mission, meaning that I can't set it to auto while armed, etc. To reupload the mission I have to actually change a command in the CommandSequence.
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.
@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?
I'm not currently in the position to do so as I'm back in school from my
internship. Once we get our test setup completed in my student group I'll
let you know.
On Nov 9, 2015 8:26 PM, "Hamish Willee" notifications@github.com wrote:
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.
Activity
hamishwillee commentedon Aug 9, 2015
@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?
tcr3dr commentedon Nov 9, 2015
See #227 and #439 for a test case that should indicate that upload completes without issue, as well as re-downloading commands.
hamishwillee commentedon Nov 10, 2015
@jamesbellaero As @tcr3dr says above, we think this is fixed in dkpy2.0. Can you please confirm?
jamesbellaero commentedon Nov 10, 2015
I'm not currently in the position to do so as I'm back in school from my
internship. Once we get our test setup completed in my student group I'll
let you know.
On Nov 9, 2015 8:26 PM, "Hamish Willee" notifications@github.com wrote:
tcr3dr commentedon Nov 10, 2015
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.