User defined module in Ardupilot

I am looking to build a user defined module in Ardupilot and flash into cubeorange. Could anyone help me in building the module in Ardupilot (how to build, where to build and what are the files required to be added etc.,)

Thank you in advance

Narahari

hello,

start by the wiki : Building the code — Dev documentation

Thank you @khancyr for your response