Add dynamic modules on Posix.
You can now add `DYNAMIC` as an option to `px4_add_module`, which will cause that module to no longer be compiled into the px4 executable, but instead produce a separate shared library file, which can be loaded and executed with the new `dyn` command: pxh> dyn ./hello.px4mod start This will load the shared object file `hello.px4mod` if it wasn't already loaded, and execute its main function with the given arguments.
Showing
- cmake/common/px4_base.cmake 21 additions, 4 deletionscmake/common/px4_base.cmake
- cmake/configs/posix_rpi_common.cmake 1 addition, 0 deletionscmake/configs/posix_rpi_common.cmake
- cmake/configs/posix_sitl_default.cmake 1 addition, 0 deletionscmake/configs/posix_sitl_default.cmake
- platforms/posix/cmake/px4_impl_os.cmake 5 additions, 0 deletionsplatforms/posix/cmake/px4_impl_os.cmake
- src/systemcmds/dyn/CMakeLists.txt 8 additions, 0 deletionssrc/systemcmds/dyn/CMakeLists.txt
- src/systemcmds/dyn/dyn.cpp 91 additions, 0 deletionssrc/systemcmds/dyn/dyn.cpp
Loading
Please register or sign in to comment