Installing Custom Ardupilot Code to Cube Orange+

Recently, I added some functions in ardupilot files for my copter but when I try to install them into Pixhawk Cube Orange Plus, Mission Planner just gives permission to install some particular file types (.hex .px4 .vrx .apj). I couldn’t convert my file into these types. Are there any methods to do it?

When you compile the code, an .apj file gets generated. Use that one.

Where can I find the compiled files?

When compiling the code the compiler prints a message saying where it generates the apj file.

How exactly are you compiling the code? Are you using waf?

I am using cygwin64. When I try to install with waf, I get “could not configure a C++ compiler!” error. I couldn’t get how to install a compiler to it.

Also I realised that when I open the sim.vehicle.py, I get these messages:

Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc

but when I try to use waf command, It can’t recognize the path.