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 VLA #2523

Merged
merged 4 commits into from
Apr 17, 2020
Merged

WLS VLA #2523

merged 4 commits into from
Apr 17, 2020

Conversation

EwoudSmeur
Copy link
Member

I took a moment to remove those variable length arrays (VLA) from the WLS control allocation code. This should speed up the computation time considerably.

I changed the variable length of the arrays to a length set by defines. The problem I ran into is that I am not sure exactly where to define these defines, as it should be possible to define them from the test, or from an airframe, directly or indirectly. If I include the airframe the test does not compile any more, while for the test I now put them in the makefile to make it work... I guess there must be a nice way of doing this right?

@gautierhattenberger
Copy link
Member

what about defining them in the makefile part of the modules that are using the WLS code ? (or makefile in the case of test code)

By defining the control allocation problem size in the makefile section
of the module xml, there is no need to introduce a dependency on the
generated airframe file in the wls_alloc code
Somehow the small inertia caused the drone to start upside down, maybe
some kind of overflow somewhere? In any case, this small change was
enough to do a simulation without issues...
@EwoudSmeur
Copy link
Member Author

Thanks Gautier, I used the makefile section in the stabilization_indi module conf to have the defines. Also, I changed one of the inertia values in the bebop jsbsim file by a tiny amount, otherwise it would start upside down. I am not sure how or why...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants