Navigation data


#1

Product: Mambo/Airborne Cargo]
Product version: [2.7.10]
SDK version: [3.13.0]
SDK platform: [Android]

Hello, i’m using Mambo and i’m trying to get navigation data like psi (orientation), i use this code, but i get nothing :
if ((commandKey == ARCONTROLLER_DICTIONARY_KEY_ENUM.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION) && (elementDictionary != null)){
ARControllerArgumentDictionary<Object> args = elementDictionary.get(ARControllerDictionary.ARCONTROLLER_DICTIONARY_SINGLE_KEY);
if (args != null) {

float posx = (float)((Double)args.get(ARFeatureMiniDrone.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION_POSX)).doubleValue();

float posy = (float)((Double)args.get(ARFeatureMiniDrone.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION_POSY)).doubleValue();

short posz = (short)((Integer)args.get(ARFeatureMiniDrone.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION_POSZ)).intValue();

short psi = (short)((Integer)args.get(ARFeatureMiniDrone.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION_PSI)).intValue();

short ts = (short)((Integer)args.get(ARFeatureMiniDrone.ARCONTROLLER_DICTIONARY_KEY_MINIDRONE_NAVIGATIONDATASTATE_DRONEPOSITION_TS)).intValue();

onUpdatePosition(posx,posy,posz,psi);
}
}

Thank you.


#2

Hi,

As said in this thread, drone position is not sent for the moment:


#4

i’m using Mambo FPV (software version 2.7.10), i want to get quaternion and altitude informations,


#5

please any help ? :confused:


#6

I think that all information you need is available in the thread I gave you.

If something is missing, please tell us what in particular.