/// Connect to the Tango Service. /// Note: connecting Tango service will start the motion /// tracking automatically. bool TangoData::Connect() { if (TangoService_connect(nullptr) != TANGO_SUCCESS) { LOGE("TangoService_connect(): Failed"); return false; } return true; }
bool TangoConnect() { // Connect to the Tango Service. // Note: connecting Tango service will start the motion // tracking automatically. if (TangoService_connect(NULL, config) != TANGO_SUCCESS) { LOGE("TangoService_connect(): Failed"); return false; } return true; }
// Connect to Tango Service TangoErrorType TangoData::Connect() { return TangoService_connect(nullptr, config_); }