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

WLS control allocation #2075

Merged
merged 4 commits into from
Jun 15, 2017
Merged

Conversation

EwoudSmeur
Copy link
Member

This is a pull request for a control allocation scheme, made by Daan Höppener, a student of mine. It allows you to specify priorities for different control objectives through a weighting in the cost function. This is why it has weighted least squares (WLS) in the name. Prioritizing parts of the control objective (pitch and roll over yaw for instance) is important for stable flight when there are saturations. Normally, the optimal control input can be found with the pseudo-inverse. However, when there are saturations, WLS-control allocation will satisfy the important parts of the control objective at the cost of the unimportant parts.

The optimal solution for this cost function is found using the active set method, which requires solving multiple least squares problems. For this we are using a (trimmed down) library from John Burkardt (http://people.sc.fsu.edu/~jburkardt/cpp_src/r8lib/r8lib.html). I wasn't sure what header we need for these files.

Probably I can still improve some stuff here and there, but I wanted to get the ball rolling with this pr...

@podhrmic
Copy link
Member

Exciting! For the header - the library is GPL, so perhaps copying their licence info there and a link to the source would be good?

@OpenUAS OpenUAS merged commit b2e22be into paparazzi:master Jun 15, 2017
@EwoudSmeur
Copy link
Member Author

Hi @OpenUAS
Thanks for merging, but I think there has not been the chance for a good review. Not many people look into this code on a regular basis, so these pull requests are one of the few occasions for me to get feedback, and for others to object to anything I am doing.
I am thinking we should maybe revert and give the review another shot...

EwoudSmeur added a commit that referenced this pull request Jun 16, 2017
This was referenced Jun 16, 2017
wv-tud added a commit to wv-tud/paparazzi that referenced this pull request Jun 19, 2017
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

3 participants