御2行业进阶版,在执行waypoint MISSION 时,执行 Rotation rotation =new ...
Completed御2行业进阶版,在执行waypoint MISSION 时,执行
Rotation rotation =new Rotation.Builder().mode(RotationMode.ABSOLUTE_ANGLE).yaw(0).build();
gimbal.rotate(rotation,callBack);
为什么callBack没有错误提示情况下,飞机云台的getYawRelativeToAircraftHeading为什么还是不会为0?也就是云台在水平方向上不会归中。
-
MSDK4.16.1,在waypoint1任务中,有拍照,有gimbalPitch动作,按你之前的建议用 Rotation rotation = new Rotation.Builder() .mode(RotationMode.ABSOLUTE_ANGLE) .pitch(0) .yaw((float) attitude.yaw) .build(); gimbal.rotate(rotation, new CommonCallbacks.CompletionCallback() { @Override public void onResult(DJIError djiError) { LogUtil.info2("云台归中", djiError == null ? "null" : djiError.getDescription()); if (djiError != null) { runOnUiThread(() -> { ToastUtil.show("云台归中失败:" + djiError.getDescription()); }); } } });
Please sign in to leave a comment.
Comments
10 comments