It is stated, in this answer : That when you want to receive data from dji-mobile sdk, you set a callback function.
Then :
The OSDK will call a user-defined callback whenever data is received from the MSDK.
Does this mean, that if i have a code like this :
void fromMobileSDKCallback(
Vehicle* vehicle, RecvContainer recvFrame, UserData userData) {
//statements with recvFrame;
// update a global variable recvGlobal
}
vehicle->moc->setFromMSDKCallback(fromMobileSDKCallback, linuxEnvironment);
then, later on in a program, a block like :
while(true) {
// check if recvGlobal is updated
}
will work, and i will be able to see the changes reflected in recvGlobal indefinitely?
Thank you.