URGENT device Controller


#1

i’ve tried to create a device controller in order to start the mavlink flightplan here’s

    `ARCONTROLLER_Device_t *deviceController = NULL;
     eARCONTROLLER_ERROR error = ARCONTROLLER_OK;
     eARCONTROLLER_DEVICE_STATE deviceState=ARCONTROLLER_DEVICE_STATE_MAX;
     deviceController = ARCONTROLLER_Device_New (device, &error);
     eARCOMMANDS_COMMON_MAVLINK_START_TYPE flightPlan = ARCOMMANDS_COMMON_MAVLINK_START_TYPE_FLIGHTPLAN;
    error = ARCONTROLLER_Device_Start (deviceController);
    if (error != ARCONTROLLER_OK)
    {
        failed = 1;
        printf("error with the device\n");

}
deviceController->common->sendMavlinkStart(deviceController->common, “flightPlan.mavlink”, flightPlan);`

but i get this error :
undefined reference to `ARCONTROLLER_Device_New’

i can’t find the origin ??? any help
Thank you for your kind help


#2

Did you compile the SDK?
Can you give me more information about what you did before and how you launched your program?