Comments

7 comments

  • DJI Developer Support
    可以根据这个key判断去无人机是否连接成功,关机即为false:KeyConnection
    0
    Comment actions Permalink
  • zxd

    V4 SDK 有没有监听无人机关机的方法 ? 是无人机关机不是遥控器关机, onProductDisconnect只能监听遥控器关机和断开

    0
    Comment actions Permalink
  • DJI Developer Support
    可以根据这个key判断去无人机是否连接成功,关机即为false:KeyConnection
    0
    Comment actions Permalink
  • zxd

    V4 SDK 有没有监听无人机关机的方法 ? 是无人机关机不是遥控器关机, onProductDisconnect只能监听遥控器关机和断开

    我说的是V4 SDK

    0
    Comment actions Permalink
  • DJI Developer Support
    V4可以通过该方法:isConnected
    0
    Comment actions Permalink
  • zxd
    product.isConnected()  

    这个吗,这是需要主动获取的吧,有没有回调的方法?

    0
    Comment actions Permalink
  • DJI Developer Support
    是主动获取的,或者你可以使用setComponentListener设置对飞控的监听去判断,如果飞机关机后飞控连接就会断开就会回调。
    0
    Comment actions Permalink

Please sign in to leave a comment.