I wrote a new application in folder src/examples/my_simple_app. The codes are copied from official website. I add the path into some cmake file, but it cannot be compiled. The problem doesn’t happen when i am using predefined path like px4_simple_app, though.
What’s the correct way to write applications of my own? Anybody has a better tutorial for that?
Anybody can help us?
I actually did this a couple of days ago following the procedure here: https://dev.px4.io/tutorial-hello-sky.html
I am not an expert but I think that the step missing from that procedure is to create a file like this one https://github.com/PX4/Firmware/blob/master/src/examples/px4_simple_app/CMakeLists.txt for your specific module.
I have a very similar problem just that i do have the CMakeLists.txt file for my specific module, the error that i have when i try to build it is:
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
ninja: build stopped: subcommand failed.
Makefile:161: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 1
Do you know how can i resolve it ?