So I was looking to try and build my own flight mode in ArduCopter. I have gone through the process of setting up the build environment in WSL with Ubuntu. I am able to successfully compile and build the code to create the .apj file. This also uploads to the Pixhawk 2.1 Cube successfully. However, when I try to arm the motors, I receive the message “PreArm: check firmware or FRAME_CLASS”.
Yes, I have checked the FRAME_CLASS, it is set to heli like it should be. After digging around and trying several things, I decided to narrow down the problem and try to build a stable release of ArduCopter 3.6.6. Once again, it compiles, builds and uploads fine. But once again, the stable version gives me the firmware error as well. Here is a picture of the message in Mission Planner.
https://drive.google.com/file/d/12FBfCTQSe915WHq3Jgztc0BCb4JH9cVN/view?usp=sharing
As I have tried to upload this version of the firmware, I have switched back to the version downloadable directly through Mission Planner and that version works fine immediately every time.
While the documentation on how to set up the build environment on the ArduPilot website gave issues, I was able to follow this youtube video to get as far as I did. It appears others have had success with this video as well. I have set the board type to fmuv3 for the Pixhawk Cube, as specified on its website.
Could anyone point me in the right direction for my next move? Am I missing something here? Any help would be greatly appreciated. If I forgot to mention any relevant information, please ask away. Thanks in advance!