dji-sdk / Mobile-SDK-iOS

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

the SDK of 3.5.1 version whether there is a virtual fence API? #88

Open lhs71173717 opened 7 years ago

lhs71173717 commented 7 years ago

DJI iOS SDK version 3.5.1 DJI Product Phantom 3 4k iOS system version iOS 10 iOS device iPhone6 plus Xcode version 8.1

I want to do a virtual fence like DJI GS Pro, but did not find the corresponding api. Could you tell me how to do this?

Waiting for your reply . Thanks very much.

oliverou commented 7 years ago

Hi @lhs71173717, the DJI GS Pro use the virtual stick in Flight Controller. However, there is a critical bug in Mavic, Inspire 2 and Phantom 4 Pro's firmware, it will be fixed in the upcoming firmware update. You can check the following interface in the iOS SDK:

- (void)sendVirtualStickFlightControlData: (DJIVirtualStickFlightControlData)controlData withCompletion:(DJICompletionBlock)completion;

You can also check this DJI Simulator Tutorial to learn how to use virtual stick. Hope this help, thanks!