REQUEST_TIMEOUT during invoke KeyAircraftLocation3D
843 1 2024-1-10
Uploading and Loding Picture ...(0/1)
o(^-^)o
davidepal
lvl.1
Italy
Offline

Hi everyone,
I'm a newbie developer and I'm implementing a logic to get the first geolocation of aircraft. I run this block of instructions:

KeyManager.getInstance().getValue(KeyTools.createKey(FlightControllerKey.KeyAircraftLocation3D), new CommonCallbacks.CompletionCallbackWithParam<LocationCoordinate3D>() {
    @Override
    public void onSuccess(LocationCoordinate3D locationCoordinate3D) {
        Log.i(TAG, "AircraftLocation: " + locationCoordinate3D.toString());
    }

    @Override
    public void onFailure(@NonNull IDJIError error) {
        Log.e(TAG, "AircraftLocation Error: " + error);
    }
});





but is invoked onFailure method, with this error:


ErrorImp{errorType='CORE', errorCode='REQUEST_TIMEOUT', innerCode='', description='null', hint='error.

What Am I doing wrong?



                                                                           Translator                        
                                                                              
                                                                              
                     
                                             
                        
                     
                 

2024-1-10
Use props
djiuser_cfIyIMR8WQLb
lvl.1
Argentina
Offline

The drone have to be in a open space
Steps:
1.1) Power on the RC
1.2) Connect the RC with your Smartphone
1.3) Power on the drone
1.4) Disable the Location from the Smartphone
1.5) Open your app
1.6) Test to get the location

If you can't get the location, try this:
2.1) Power on the RC
2.2) Connect the RC with your Smartphone
2.3) Power on the drone
2.4) Enable the Location from the Smartphone
2.5) Open DJI Fly
2.6) Watch the triangle in the map (triangle is the drone, so the drone location is working)
2.7) Repeat the previous steps since 1.1


db4f513d-67ca-44d2-b6d8-6d8bba686448.jpg
2024-5-24
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules