Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error and problem with Mavic 2 Enterprise advanced focal length from MSDK #1320

Open
fatbringer opened this issue Sep 2, 2024 · 6 comments

Comments

@fatbringer
Copy link

fatbringer commented Sep 2, 2024

I want to use MSDK to get zoom level and focal length of the Mavic 2 Enterprise advanced

I see on the website M2EA has a focal length of "35 mm format equivalent: 24 mm".
image

using the MSDK method, i can retrieve at 1x zoom, a value of 240. At the maximum zoom, the value i return a 7680.

QUESTIONS:

  1. at 1x zoom, does 240 correspond to the 24mm?, and therefore, does 7680 correspond to a equivalent focal length of 768mm ?
  2. how do i know when does the optical zoom end?
  3. at what value does the digital zoom start and end?

ERROR

E  Error getting HybridZoomSpec: Not supported
 E  Error getting DigitalZoomFactor: Not supported
 E  Error getting OpticalZoomFactor: Not supported

I am trying to retrieve the zoom levels for my DJI Mavic 2 Enterprise Advanced but unable to retrieve the digital zoom and optical zoom as shown above, but I am able to retrieve these values from 240 to 7680 using this function getHybridZoomFocalLength() only.

QUESTIONS:

  1. The documentation writes that M2EA is able to use these functions. But why does it throw an error?
@fatbringer fatbringer changed the title Mavic 2 Enterprise advanced focal length from MSDK Error and problem with Mavic 2 Enterprise advanced focal length from MSDK Sep 2, 2024
@dji-dev
Copy link
Contributor

dji-dev commented Sep 2, 2024

Agent comment from yating.liao in Zendesk ticket #116155:

at 1x zoom, does 240 correspond to the 24mm?, and therefore, does 7680 correspond to a equivalent focal length of 768mm ?
-->It is correct.

how do i know when does the optical zoom end?
at what value does the digital zoom start and end?
-->
The M2EA only supports digital zoom, so at 1x zoom, it is the optical focal length.

°°°

@fatbringer
Copy link
Author

@dji-dev

Thank you for the prompt reply!

May I check what about these errors?

E  Error getting HybridZoomSpec: Not supported
 E  Error getting DigitalZoomFactor: Not supported
 E  Error getting OpticalZoomFactor: Not supported

I am trying to use for Mavic 2 Enterprise Advance.

@dji-dev
Copy link
Contributor

dji-dev commented Sep 4, 2024

Agent comment from yating.liao in Zendesk ticket #116155:

I recommend you can take a look at this tutorial. M2EA does not obtain the current focal length through the camera interface.
How to make lens zoom in with M2EA?(https://sdk-forum.dji.net/hc/en-us/articles/4402661805337-How-to-make-lens-zoom-in-with-M2EA)

°°°

@fatbringer
Copy link
Author

@dji-dev sorry for causing misunderstanding.
I just wanted to understand and obtain the current focal length and zoom level. I had thought that using ZoomSpec and ZoomFactor function will help me get it. But i got an error instead.

@dji-dev
Copy link
Contributor

dji-dev commented Sep 5, 2024

Agent comment from yating.liao in Zendesk ticket #116155:

The ZoomFactor interface does not support M2EA zoom lens. You can try the interface mentioned in the article above, which can retrieve the focal length of M2EA.

°°°

@dji-dev
Copy link
Contributor

dji-dev commented Sep 5, 2024

Agent comment from yating.liao in Zendesk ticket #116155:

If you attempt to obtain the focal length through the lens class interface as described in the article while the zoom display is currently active, it will still be incorrect. Could you let us know the version of MSDK you are using as well as the firmware version of the drone?

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants