dji-sdk / Mobile-SDK-iOS

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

DJILens setISO error -1005 for H20 - M300 #458

Open federiconicoli opened 3 years ago

federiconicoli commented 3 years ago

I'm trying to change H20 ISO to automatic but it fails. The exposure mode is program (also I cannot change it, see https://github.com/dji-sdk/Mobile-SDK-iOS/issues/457) so according to the documentation I should be able to change the ISO to automatic. I'm doing:

camera.lenses.first { $0.lensType == .wide }.setISO(.isoAuto) { error in
    if let error = error {
        print("Error setting ISO: \(error.localizedDescription)")
    }
}

It prints: Error setting ISO: The parameters are invalid. Please review and submit the request. (code: -1005)

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 #47029:

Dear Customer,

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

Thanks,

Luce Luo DJI Developer Support

added by Git-Zen

federiconicoli commented 3 years ago

isoRange returns [2, 3, 4, 5, 6, 7, 8] if a try to set any of those values like .ISO6400 it fails with DJI SDK has come across unknown error code(217). Please update SDK or contact DJI Developer....

dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #47029:

Dear Customer,

Thank you for contacting DJI. I see. 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

°°°