APM, Pixhawk, and custom apps


I’m working toward adding a custom app to run alongside APM on Pixhawk, to listen for heartbeat and send it navigation commands.

As a start, I’ve followed along with the ‘Hello Sky’ example (pixhawk.org/dev/px4_simple_app) but I got confused with which ‘make’ I should be using for build and upload.

This line in PX4Firmware/makefiles/config_px4fmu-v2_default.mk:
MODULES += examples/px4_simple_app

and in ardupilot/ArduCopter…

make px4-v2-upload

… didn’t result in ‘px4_simple_app’ appearing as a command after the upload.

What am I missing?


I think I figured out this part of the problem.

To build:
dev.ardupilot.com/wiki/building- … ke-on-mac/

Adding a new app to NuttX:

adding the new module in PX4Firmware/src/modules
registering the new module in ardupilot/mk/PX4/config_px4fmu-v2_APM.mk

Clean build:
cd ArduCopter
make px4-clean
make px4-quad

To upload:
make px4-v2-upload

Thanks for posting how you solved your problems, Daryl. It is much appreciated!