Please select Into the mobile phone version | Continue to access the computer ver.
Does setVisionDetectionStateUpdatedCallback work on Mavic Air 2?
64 2 4-6 12:49
Uploading and Loding Picture ...(0/1)
o(^-^)o
gndev
lvl.1
Flight distance : 23 ft
United States
Offline


Any help with the below is appreciated. Thanks!


1. Product Information (required):
Mavic Air 2 with Smart Contoller.

2. Version Information (required):
MSDK version: 4.14.1
Drone firmware version: 01.01.0610
Smart RC firmware version: 01.00.0880


3. Function Module (required):
FlightController.FlightAssistant

4. Environment (required):
Seems to happen in any environment.


5. Description of Problem (required):

FlightAssistant.setVisionDetectionStateUpdatedCallback does not seem to work on Mavic Air 2. (But does on Mavic 2 Zoom.)


The below code example works fully on Mavic 2 Zoom, but only partly works on Mavic Air 2.
VisionDetectionState is received on Mavic 2 Zoom, but never on Mavic Air 2.
Whereas FlightControllerState is received on both the Zoom and the Air.


private void test() {
    Aircraft aircraft = (Aircraft) DJISDKManager.getInstance().getProduct();
    FlightController flightController = aircraft.getFlightController();
    FlightAssistant flightAssistant = flightController.getFlightAssistant();

    flightAssistant.setVisionDetectionStateUpdatedCallback(new VisionDetectionState.Callback() {
        @Override
        public void onUpdate(@NonNull VisionDetectionState visionDetectionState) {
            //
            // VisionDetectionState.Callback.onUpdate is called on Mavic 2 Zoom.
            // BUT NEVER CALLED on Mavic Air 2.
            //
            Log.d("TEST", "Received VisionDetectionState.");
        }
    });

    flightController.setStateCallback(new FlightControllerState.Callback() {
        @Override
        public void onUpdate(@NonNull FlightControllerState flightControllerState) {
            //
            // FlightControllerState.Callback.onUpdate is called on Mavic 2 Zoom.
            // And called on Mavic Air 2 too.
            //
            Log.d("TEST", "Received FlightControllerState.");
        }
    });
}



4-6 12:49
Use props
gndev
lvl.1
Flight distance : 23 ft
United States
Offline


Has anyone else been able to get the vision obstacle detection APIs to work on the Mavic Air 2? Does anyone know if this functionality is supposed to be available through the MSDK on Mavic Air 2?

As detailed in my previous message, I've been unable to get callbacks on VisionDetectionState.Callback.onUpdate. (But it does work on Mavic 2 Zoom.)

Any info is appreciated. Thanks!
4-13 12:24
Use props
Garrygb
lvl.2

Ukraine
Offline

Thanks for sharing!
4-13 23:07
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules