-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
MultirotorMixer: hotfix [-1,1] scaling #15626
Conversation
Something seems still not good. The mixer test fails. Let me check. |
I suppose it's a little late now, but can we also add something simple to the mixer unit tests that would have caught this in the first place? |
Depending on the constructor (geometry or actual scaling) you get a different idle speed. |
That's also what I had found out. Default value for |
For CI: #12148 (comment) |
Thanks for the quick fix @MaEtUgR, apparently this wasn't such a quick and easy flash savings after all... |
Describe problem solved by this pull request
Taking off with a powerful enough multirotor which has hover thrust < 50% leads to a vertical flyaway. E.g. SITL jmavsim
By bisecting I found that #15563 introduced that and after inspection I found that only the idle thrust part has enough influence to make that happen. Apparently the output was scaled with [0,1] instead of [-1,1].
Describe your solution
The variable
_idle_speed
which was removed in #15563 was always -1.f so I just followed where it was used before and replaced the previous use with the number.Describe possible alternatives
We should probably reconsider suddenly changing the output scaling in the middle of the mixer. This is just a hotfix to restore previous functionality without
_idle_speed
.Test data / coverage
SITL flying works again 🎉
Additional context
Bug is not on v1.11