M300无人机是否有API接口使双云台同步?

Completed

Comments

13 comments

  • DJI Developer Support
    这个接口应该也支持M300的,你试试?文档可能老了。
    0
    Comment actions Permalink
  • Caiyixun

    好的,我试试看,官方网站上的问题里面确实只提到了M210

     

    0
    Comment actions Permalink
  • Caiyixun

    设置不成功啊?不知道是我的代码的问题还是这个函数本身不能?你们测试过了吗?这个同调函数。

    0
    Comment actions Permalink
  • DJI Developer Support
    可以的,你代码发我看看,回调结果是什么?
    0
    Comment actions Permalink
  • Caiyixun

    没有任何回调结果,云台不是null,但是没有返回任何结果。

    获取云台的逻辑:

    0
    Comment actions Permalink
  • DJI Developer Support
    抱歉,要改用这个接口,startMultiGimbalAttitudeSynchronization。
    0
    Comment actions Permalink
  • Caiyixun

    好的,感谢。我等一下试试看

    0
    Comment actions Permalink
  • Caiyixun

    已解决

    0
    Comment actions Permalink
  • 1149643940

    方便看下最终实现的代码吗?startMultiGimbalAttitudeSynchronization(int[]   CallBack)参数的是指两个云台index吧

    0
    Comment actions Permalink
  • DJI Developer Support
    文档写得很清楚啊,你只需要将云台位置作为int array传入即可。 ![](https://djisdksupport.zendesk.com/attachments/token/QYPh3dMbPuOQNqlwb3HI1WSH5/?name=image.png)
    0
    Comment actions Permalink
  • 1149643940

    OK,我试试

    0
    Comment actions Permalink
  • Caiyixun

    有一个问题,我发现一旦设置了同调,第二个云台的控制权就会被剥夺。那如果我打算是第一个云台跟随第二个云台的动作,是不是应该写成i[0]=1;i[1]=0;因为API是封装的,我不知道里面的逻辑,我是这样猜的

    0
    Comment actions Permalink
  • DJI Developer Support
    不是,因为云台同步实际上就是副云台跟随主云台,你要确定哪个是你的主云台,你如果是用遥控器控制的话,用remoteController.setControllingGimbalIndex。
    0
    Comment actions Permalink

Please sign in to leave a comment.