Giter Club home page Giter Club logo

Comments (4)

dji-dev avatar dji-dev commented on August 20, 2024

Agent comment from William Wong in Zendesk ticket #34039:

Dear Client
Thank you for contacting DJI.

Hi, Could you confirm that your model is Mavic 2 Enterprise or Mavic 2 Enterprise Dual? Only Mavic 2 Enterprise Dual has thermal camera. To access the thermal camera, you can call getCameras function.

Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support

from android-fpvdemo.

mgrova avatar mgrova commented on August 20, 2024

First of all, thank you very much for your quick response.

I have the Mavic 2 Enterprise Dual. I try to change between thermal or visual cameras basing on this stack overflow response;

https://stackoverflow.com/questions/56243851/setting-camera-mode-on-mavic-2-enterprise-dual-visual-thermal-and-msx-switch

But instead of use the "fetchCamera()" function i'm using the "getCameraInstance()" of your example. When I change to thermal mode, using the method setDisplayMode with parameter THERMAL_ONLY, the DJIerror tolds me "not supported":

  Camera camera = FPVDemoApplication.getCameraInstance();
  camera.setDisplayMode(SettingsDefinitions.DisplayMode.THERMAL_ONLY, new CommonCallbacks.CompletionCallback() {
                        @Override
                        public void onResult(DJIError error) {

                            if (error == null) {
                                showToast("Switch to thermal Succeeded");
                            } else {
                                showToast(error.getDescription());
                            }
                        }
                    });

The goal is to be able to switch between the cameras and access each callback.

Thank you very much for your time !!
Best regards.

from android-fpvdemo.

mgrova avatar mgrova commented on August 20, 2024

Hi !
I have already managed to successfully change cameras by getting the camera with index 1, that is the thermal :

 BaseProduct base = FPVDemoApplication.getProductInstance();
 Camera camera = base.getCameras().get(1);

And using the above method switch between msx, visual or thermal.

Best regards!

from android-fpvdemo.

dji-dev avatar dji-dev commented on August 20, 2024

Agent comment from William Wong in Zendesk ticket #34039:

Dear Client
Thank you for contacting DJI.

Yes, you are correct. You get un support initially because you use getCamera function. That will give you the optical camera which does not support thermal functions. For Enterprise Dual, there are 2 cameras. So you have to use getCameras function to get the postion 1 camera which is the thermal camera and everything start working. Good luck for your further development and feel free to come to us if you have any queries.

Hopefully our solution can help you.
Kindly Regards,
DJI Developer Support

from android-fpvdemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.