dji-sdk / Mobile-SDK-iOS

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

How to custom button in Mavic Air 2S? #515

Closed lygialiem closed 2 years ago

lygialiem commented 2 years ago

Hi team DJI.

I wonder how to custom Fn button on remoteController with this SDK. The DJIRemoteControllerDelegate has func remoteController(_ rc: DJIRemoteController, didUpdate buttonAction: DJIRCButtonAction). but it seems that function get never called when i press fn or double press fn button on Mavic Air 2S's remote controller?

I also noticed that DJIRemoteControllerDelegate have (void)remoteController:(DJIRemoteController *)rc didUpdateHardwareState:(DJIRCHardwareState)state. But it seems not suitable for this situation.

Could you give me a keywork or something related to this question.

Thank you very much and best regard.

lygialiem commented 2 years ago

I found the solution