Running Onboard CPP Apps for TX2


#1

I have followed the following link to get everything setup for my TX2 development board:
http://docs.flytbase.com/docs/FlytOS/GettingStarted/TX1Guide.html#configuring-pixhawk-autopilot

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
#include <cpp_api/navigation_bridge.h>

using namespace std;

int main()
{
Navigation nav;

    if(!nav.arm())
            cout<<"System ARMED";
    else
            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.


#2

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