I am trying to bring a Filter class into px4 library.
-
I created a folder name Filter under /src/lib folder and all the relevant files into the folder.
-
I modified CMakeLists.txt in lib folder to add sub directory by
add_subdirectory(Filter) -
In /src/lib/Filter, I also created CMakeLists.txt and added followings
px4_add_library(Filter
LowPassFilter.cpp
) -
Tried to build the firmware and no errors found.
-
I checked Filter folder created under /build/nuttx_px4fmu-v2_default/src/lib/ however, there is no binary files created in CMakeFiles!
This creates not defined error when the class is imported in other source code.
Is there anything missing in adding class templetes into px4 source project?
Hope someone can help.
Kyu