Does setVisionDetectionStateUpdatedCallback work on Mavic Air 2?
593 1 2021-4-6
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.");
        }
    });
}



2021-4-6
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!
2021-4-13
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules