M210 RTK 获取双遥控器云台控制 (iOS SDK)

M210 RTK Get Gimbal Control w/ Dual Remotes (iOS SDK)

在 iOS 上的 DJI GO 4 中,当 M210 RTK 无人机在双遥控器 (master/slave) 配置中的两个独立 iPad 上使用时,"Get Gimbal Control" 按钮出现在应用程序中,无论哪个遥控器没有控制权。当点击按钮时,iPad 和遥控器获得相机云台的控制权。

我正在尝试将此功能添加到我们的应用程序中。在 DJI SDK (4.7.1) 中,我找到了以下看起来与 DJI GO 4 中的 UI 相对应的函数。

在 DJIRemoteControllerDelegate 上的 DJIRemoteController.h 中:

- (void)remoteController:(DJIRemoteController *_Nonnull)rc didReceiveGimbalControlRequestFromSlave:(DJIRCInformation *_Nonnull)information;


在 DJIRemoteController 的 DJIRemoteController.h 中:

- (void)requestGimbalControlWithCompletion:(void (^_Nonnull)(DJIRCRequestGimbalControlResult result, NSError *_Nullable error))completion;

- (void)respondToRequestForGimbalControl:(BOOL)response fromSlaveRC:(uint32_t)rcID;


问题是,当我从从机执行此调用时 iPad/remote 它 returns 一个错误,指出该产品不支持此功能。这使得我提到的其他 DJI SDK 功能变得无关紧要。

[djiAircraft.remoteController requestGimbalControlWithCompletion:^(DJIRCRequestGimbalControlResult result, NSError * _Nullable error) {
    NSLog(@"%@", error);
}];


Error Domain=DJISDKErrorDomain Code=-1013 \"Current product does not support this feature.(code:-1013)\" UserInfo={NSLocalizedDescription=Current product does not support this feature.(code:-1013)}


话虽这么说,我在这里错过了什么吗?我应该使用一组不同的 API 来为 M210 w/Dual 遥控器实现此功能吗?我无法找到任何实现此目的的东西,在这一点上,我假设 DJI SDK 中的 public headers 可能只是缺少它。

这些接口用于 Inspire 1 Master/Salve 双遥控云台控制。 所以 Inspire 2 会出现 return -1013 错误。 而Inspire 2目前还不支持切换云台控制