Restructure INDI to limit estimated disturbances #3256
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I restructured the INDI controller, keeping the workings exactly the same. The benefit of the new structure is that we replace the increments by a disturbance estimate, such that in the control allocation we allocate the complete control objective (specific angular accelerations and thrust), not increments. This allows us to limit the specific angular accelerations (read: moments) that we allow the drone to allocate.
As an example, the rotating wing drone has a tail, which will automatically reduce the sideslip. We don't want the drone to stick to a specific heading, and in doing that 'fight' with the tail. With this update, we can limit the estimated disturbance such that we only control yaw to a limited extent.
What is also included is a feed forward on the yaw rate from RC if the yaw attitude gain is 0, otherwise it would not be possible to control yaw anymore with the sticks if you want to fly without a fixed yaw attitude setpoint.