dji-sdk / Mobile-SDK-iOS

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

DJIHandheldControllerHardwareState button events not working for DJI Osmo Mobile 3 #328

Open dyah10 opened 4 years ago

dyah10 commented 4 years ago

I've successfully registered the Osmo Mobile handheld controller as a delegate and I receive updates hardware state updates through the delegate method:

func handheldController(_ controller: DJIHandheldController, didUpdate state: DJIHandheldControllerHardwareState)

However the record, shutter, and mode buttons are always idle. How can I get callbacks for the button events?

` extension BBDJIOsmoManager: DJIHandheldControllerDelegate { func handheldController(_ controller: DJIHandheldController, didUpdate state: DJIHandheldControllerHardwareState) {

    print("did update state")

    if state.modeButton == .singleClick {
        print("mode clicked")
    }

    if state.recordAndShutterButtons == .recordClick {
        print("record clicked")
    }

    if state.recordAndShutterButtons == .shutterClick {
        print("shutter clicked")
    }

    if state.recordAndShutterButtons == .shutterLongClick {
        print("shutter long click")
    }

    if state.zoomSlider == .zoomIn {
        print("zoom in")
    }

    if state.zoomSlider == .zoomOut {
        print("zoom out")
    }

    if state.triggerButton == .singleClick {
        print("trigger clicked")
    }
}

} `

I'm seeing the console print "did update state" but not getting any logs for when the mode or record button is clicked.

Any help I would be super thankful for!

dji-dev commented 4 years ago

Public comment from Luce Luo in Zendesk ticket #28962:

Dear Customer,

Thank you for contacting DJI. If you are using the Osmo Mobile 3, please note that it's not supported by the MSDK. Seeing all the products supported list: https://developer.dji.com/products/

Thanks,

Luce Luo DJI Dev Team

dyah10 commented 4 years ago

Hi,

Will the Osmo Mobile 3 be supported by the MSDK eventually? And if so, do you have an estimate for that?

Dominique

On Fri, Oct 18, 2019 at 2:13 AM DJI notifications@github.com wrote:

Public comment from Luce Luo in Zendesk ticket #28962 https://djisdksupport.zendesk.com/agent/tickets/28962:

Dear Customer,

Thank you for contacting DJI. If you are using the Osmo Mobile 3, please note that it's not supported by the MSDK. Seeing all the products supported list: https://developer.dji.com/products/

Thanks,

Luce Luo DJI Dev Team

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dji-sdk/Mobile-SDK-iOS/issues/328?email_source=notifications&email_token=AAOCI7RITNMQWANSNMYDLFLQPFHY5A5CNFSM4JB3SNW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBS2QIY#issuecomment-543533091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOCI7RNF32KTNTT64T3IG3QPFHY5ANCNFSM4JB3SNWQ .

denislevkovich commented 4 years ago

When do you expect to introduce the support for OSMO Mobile 3?

richard-viney commented 4 years ago

@dji-dev

Is there an iOS SDK available for the OSMO Mobile 3?

I have an account on developer.dji.com, but the current Mobile SDK (version 4.11) doesn't list the OSMO Mobile 3 as a supported piece of hardware, only the Osmo Mobile 2 is listed.

Thanks.

WalidKhalladi commented 2 years ago

Hi, Is there any update on this ? I have the Gimbal DJI Osmo OM5 and I'm facing the same issue. Does the sdk works only on the model OSMO MOBILE 2 only ?