Getting Gimbal Data

已完成

评论

4 条评论

  • DJI Developer Support
    You need to pass the correct parameter at the position of componentIndexType. For example, if your gimbal is in the main position, then pass componentIndexType.LEFT_OR_MAIN.
    0
    评论操作 固定链接
  • Rakesh John
    KeyManager.getInstance().getValue(KeyTools.createKey(GimbalKey.KeyGimbalAttitude), new CommonCallbacks.CompletionCallbackWithParam<Attitude>() {
    @Override
    public void onSuccess(Attitude attitude) {
    gimbal_attitude = attitude;
    }

    @Override
    public void onFailure(@NonNull IDJIError error) {

    }
    });

    if(gimbal_attitude != null) {
    gimbal_tilt = gimbal_attitude.getPitch();
    gimbal_Pan = gimbal_attitude.getRoll();
    gimbal_Yaw = gimbal_attitude.getYaw();
    }


    Hope this helps!

     

    0
    评论操作 固定链接
  • DJI Developer Support
    Are you experiencing an issue where you are unable to retrieve gimbal attitude data? You can try passing the position of the gimbal when creating the key, which is the value included in componentIndexType.
    0
    评论操作 固定链接
  • Web User 65fa6a4d40ebbf07d70d36ac

    How about UXSDK?

    0
    评论操作 固定链接

请先登录再写评论。