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

mc_pos_control: fix z velocity derivative sign #15836

Merged
merged 1 commit into from Sep 29, 2020

Conversation

NicolasM0
Copy link
Contributor

Describe problem solved by this pull request
It seems that z velocity derivative part off multi-copter position controller has a sign error.

Describe your solution
Change sign

Test data / coverage
On master with SIH, try to set MPC_Z_VEL_D_ACC to 2 : vertical oscillations begin. Then try to set it to -2 or even -4 : the drone stabilizes.

acc_z_sign

Additional context
As MPC_Z_VEL_D_ACC default value is 0, it has no impact.

@MaEtUgR: this regression seems linked to this commit: 38093e4

@NicolasM0 NicolasM0 changed the title mc_pos_control: fix acc Z sign mc_pos_control: fix z velocity derivative sign Sep 28, 2020
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

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

Ouch, thanks for that.

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.

😮 2d49307
Thanks for finding and fixing this!

@mrpollo
Copy link
Contributor

mrpollo commented Sep 30, 2020

Thanks for the bugfix @NicolasM0

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

Successfully merging this pull request may close these issues.

None yet

4 participants