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

ManualSmoothVel - Split position lock condition and flag action #11543

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

bresch
Copy link
Member

@bresch bresch commented Feb 25, 2019

In some special cases, the controller enters position lock and the velocity/acceleration setpoint leaves the position lock condition, without actually triggering the unlocking condition (condition depending on the stick only). The position setpoint then drift "behind the scenes" (because it's the integral of the non-zero velocity setpoint) and when the condition becomes again true, a severe position jump can occur. We had a jump of 10m due to a slow drift during a fixed hover of 1 min

This should never happen, but it seems that the trajectory generator fails to find a solution is some specific cases that lead to unexpected behaviors.

This PR doesn't fix the root cause of the problem, but at least, the drone will follow the drift (in my case, move 10m in 1min) and not do a sudden jump of 10m.

I'm actively trying to find the root issue but this PR has to be merged as that behavior could cause severe damages.

See below the position jump in the y axis at t=210s
01_plot

Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@bresch bresch merged commit f229444 into master Feb 25, 2019
@bresch bresch deleted the pr-position-lock-robust branch February 25, 2019 20:41
@julianoes
Copy link
Contributor

@bresch thanks for the explanation in the PR, that's helpful. But next time, please put it in the commit message in the first place.

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

Successfully merging this pull request may close these issues.

3 participants