Please select Into the mobile phone version | Continue to access the computer ver.
Extract XYZ drone coordinates to Unity
46 0 4-25 05:00
Uploading and Loding Picture ...(0/1)
o(^-^)o
TrungLe
lvl.2
Vietnam
Offline

Hi everyone,
I'm currently working on a simulation project using a Mavic Mini and the Mobile SDK to track the current location of the drone in Unity.
So far, I've done the TCP connection between the Unity environment and the Android Application. My next step is to extract the coordinates of the drone and transform them into the Unity coordinates
What I've tried is to use the FlightControllerState to get the XYZ velocity:
mFlightController = aircraft.getFlightController(); or
mState = aircraft.getFlightController().getState();
However, both of the methods give me the 0 and NaN value when I tried to access the velocity value
mState.getVelocityX(); equal 0 if I use aircraft.getFlightController() and equal NaN with mState = aircraft.getFlightController().getState();
Have anybody tried to do this before, please give me some idea on how to solve this problems
Really appreciate your helpThank you

4-25 05:00
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules