dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
576 stars 255 forks source link

DJILens setExposureMode error 217 for H20 - M300 #457

Open federiconicoli opened 3 years ago

federiconicoli commented 3 years ago

Hey!

I'm trying to change Zenmuse H20 exposure mode to shutter priority and it always fails. I'm doing:

camera.lenses.first { $0.lensType == .wide }.setExposureMode(.shutterPriority) { error in
    if let error = error {
        print("Error setting exposure mode: \(error.localizedDescription)")
    }
}

And it prints: Error setting exposure mode: DJI SDK has come across unknown error code(217). Please update SDK or contact DJI Developer Relations to know more information on this error.

DJI SDK: 4.14 Matrice 300 RTK: V02.02.0301 Zenmuse H20: V02.02.0100

Any ideas?

Thank you!

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #47028:

Dear Customer,

Thank you for contacting DJI. Please try to check if the H20 supported the range of the exposureModeRange first.

Thanks,

Luce Luo DJI Developer Support

added by Git-Zen

federiconicoli commented 3 years ago

exposureModeRange returns [0, 3] that is manual and program mode, right? So I if a try to set the exposure mode to manual or program it fails with the same error. Why other exposure modes are not supported?

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #47028:

Dear Customer,

Thank you for contacting DJI. Yes, the [0, 3] that is manual and program mode. And not supported with the ShutterPriority, AperturePriority mode, limited by the camera itself.

Thanks,

Luce Luo DJI Developer Support

°°°

federiconicoli commented 3 years ago

But as I said, I can't change between manual and program mode.

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #47028:

Dear Customer,

Thank you for contacting DJI. What lens you are using? Wide lens? In fact, the Wide lens is not supported to set to Manual mode, and the not support to set the iso value, always is auto. And the Zoom lens supports the P and M mode, switch to the M mode to set the iso. Also can see this logic in DJI Pilot App.

Thanks,

Luce Luo DJI Developer Support

°°°