Servers by jDrones

Add new library

arducopter

(Simone) #1

Hello
I would like to add a new library to the ardupilot library.
However, I do not know the correct procedure to add libraries.
I have created a new “AC_MYPID” folder in the library directory.
After that, I made AC_MYPID.cpp and AC_MYPID.h

library / AC_MYPID / AC_MYPID.cpp
library / AC_MYPID / AC_MYPID.h

However, I built it with sim_vehicle.py, but AC_MYPID.cpp was not built.
Please let me know the correct procedure


(Simone) #2

I found that it is enough to add libraries to wscript


(Aditya) #3

Hi,
I am trying to do the exact same thing, but I’m building ArduCopter with Make. Can anyone let me know what needs to be done to include a new library in the build process? I would like to use it on the Pixhawk target as well, so I want to just add it to all make targets. I couldn’t locate a make file which adds the libraries, can someone help?

Thanks!


(ChenWeiyu) #4

Hi friend, have you solved this problem?