-
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
Race condition when updating and fetching commands #227
Comments
This was referenced Jul 22, 2015
I THINK this is fixed by #384. |
We could stand to have a test for this, heh. |
Well, my test worked against dronekit-sitl copter 3.3. But I suspect that proves nothing. Yes, a proper test is a very good idea. |
@hamishwillee Check that #439 is a good reduction of the test case? |
#439 merged, so this issue should not suffer from a regression. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the code below (gist at https://gist.github.com/hamishwillee/9607b3707fb942d59abf#file-gistfile1-txt-L36)
The code works as is, but if the
time.sleep(2)
is removed then all waypoints are wiped (except the home waypoint).This shouldn't happen because in theory the flush means that the new waypoint is sent, and this should occur before flush returns - ie before we have a chance to do the new download of the current commands.
I think either we're not doing this properly and the vehicle.command is being wiped by the second call before the flush returns OR the autopilot is confused by our messaging.
@tcr3dr Thoughts?
The text was updated successfully, but these errors were encountered: