Running Onboard CPP Apps for TX2


I have followed the following link to get everything setup for my TX2 development board:

I have also changed the correct parameters for allowing connecting in the full parameters list via MP.
I put my drone into GUIDED mode and then execute my code to attempt to simply arm. Below is the code for this:

#include <cpp_api/navigation_bridge.h>

using namespace std;

int main()
Navigation nav;

            cout<<"System ARMED";
            cout<<"Failed to ARM system";


When executed, i get the following error that it failed to ARM the system. I check the flytos services to make sure they are running and that is good, and the license is valid for the system.

I am not sure what to do next to allow autonomous control via onboard cpp app.


Whenever you run such scripts, and they do not work as expected, look for errors in FlytOS runlogs.
Click here to know more.