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
[ins] convert ins subsystems to modules #1740
Conversation
@gautierhattenberger any good idea how to deal with the vectornav module? |
can you also update the ins_skeleton ap target to rotorcraft, atm it shouldn't work for fixedwing. |
babb86a
to
fd9d88f
Compare
why not make a ins_nps/sim module and autoload them (add make ins_vectornav only for ap) ? |
Well - the combination of substituting an INS with IMU, no AHRS and INS gps_passthrough (and that with the nps bypass flags) is currently only used/needed in vectornav. And while we have a |
Basically the question is again if we should either allow
But we have to be careful to balance added functionality/expressiveness with the increase in complexity. Not sure where the best middle ground is here... |
If the only concerned module is vectornav (and actually also xsens, so it seems to be an external ins problem), I suggest to provide a specific wrapper for these modules for nps/sim target. |
We'll have the same "problem" in a few modules and it seems to me now that allowing to "restrict" the autoload feature to specific targets could really be used in a lot of cases and make configuration easier in the end.
although that still wouldn't set the NPS_BYPASS_x defines for the nps target.. |
I agree here with @gautierhattenberger - making a specific "dummy" module for vectornav/xsens only seems to be the easiest. Btw how is currently Xsens handled in NPS? |
see https://github.com/paparazzi/paparazzi/blob/4531e5767afcf428c0c8a78781ca3ee9ca414a4c/conf/modules/imu_xsens.xml |
unless the dummy functions are actually calling the nps specific functions ? |
dummy functions? |
As soon as autoload is recursive, this should be fine... |
d505e13
to
c83f7ee
Compare
So I directly added all module that should be autoloaded for now... can be simplified as soon as we have recursive autoloading... Remaining problem is #1759 |
and get rid of ins calls in main and register functions
Done. |
looks good for me |
and get rid of ins calls in main