-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Flight plan modules #1540
Flight plan modules #1540
Conversation
Good idea! But I wonder what happens (or even should be expected) if you have the module specified in your airframe file and in the flight plan? |
@flixr I don't know yet, this is a draft to see what you guys think about this. I guess that the filtering on the flags and source files will just "merge" the two modules, but on the modules.h generation, maybe functions will appear twice. I should probably merge them before that when building the modules' list. I'll do that if it is worth the effort. @dewagter @fvantienen @OpenUAS you are using flight plans with various modules a lot I guess, what do you think about this ? |
Merging modules is working now. Delft, do you have an opinion about this feature ? |
@gautierhattenberger thank you for this feature: this is a great way to
It also confirms one of the special aspects of paparazzi: flightplans are really full programs, and module includes make this more obvious. |
@flixr can I merge or you prefer more test cases ? |
So what is the merging behaviour now if you have the module added twice? |
Now, defines/configure are aggregated (btw, I think I forgot to allow define/configure in flight plan...) but duplicates or incompatible parameters are not removed. "Real" duplicates will be merged at compile time by the |
I still think that we should check for duplicate define/configure options (but not bother with the value) and throw an error (or at least a warning) in that case. |
Load modules directly from a flight plan. Mainly meant for specifying which nav modules to load directly in the flight plan. This should make easier to set up the airframe file as it doesn't need to contain the modules needed only for some specific flight plans (where some nav routines are called that are provided by nav modules).
Yet another modules feature: load modules directly from a flight plan.
This should make easier to configure airframe so that they match the flight plans when they need specific modules.