-
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
VTOL: Only Reset Thrust but not Attitude when Disarmed #13198
Conversation
@xdwgood could you verify if this fixes the problem from your perspective? |
@dagar I think I understood the problem of #13167 is that the attitude setpoint is reset as well including the yaw heading which shows in terms of moving flaps to always reach level and head north. Heading north results in the described symptoms from #13167. Also it doesn't allow to check the flaps by sticks on any VTOL in multicopter stabilized because the setpoint is always level. I tried just removing the attitude from reseting but this has other even rarer corner cases where if you deflect the stick in stabilized and switch to altitude the flaps stay how they were last until the spoolup time of the position controller is through. So I think I need to implement the real solution otherwise we're turning in circles here. |
I came up with a strategy: |
to see flaps moving according to attitude control before arming and not have tailsitter elevons move to follow north heading.
0b57b18
to
3744fee
Compare
I checked the takeoff in VTOL gazebo and it's still fine (as expected): |
That will be fine @MaEtUgR I verified that it works the same as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😃
Attempt for the real fix #13210 according to the strategy in #13198 (comment). |
Describe problem solved by this pull request
Apparently hot fixing the takeoff with #12250 had the side effect #13167:
VTOL flaps are not moving according to attitude control before arming in multicopter state.VTOL flaps of a tailsitter are moving trying to reach north heading.
Describe your solution
Since for the takeoff fix it's only necessary to reset the body thrust I'm removing removing the reset for the attitude setpoint quaternion.
Describe possible alternatives
The real solution is to have a clear strategy to always publish an attitude setpoint AND to handle no valid attitude setpoint properly in the attitude controller. This is again a hotfix.
Test data / coverage
Additional context
First proposal by @xdwgood to solve this: #13178. I'm assuming it wouldn't pass the first test above.