MSDK V5.8.0 GimbalAngleRotation Matrice 350 with P1
已完成Hi,
Im trying to rotate the gimbal Yaw of the Matrice 350 RTK with P1 but when I execute the action the drone moves too. It doesnt happen on the Simulator, but when I'm flying the drone and I execute this action the drone turns a bit to the right. This only happens with the Matrice 350 RTK, with the Mavic 3 i dont have this problem.
This is what I'm calling:
GimbalAngleRotation gimbalAngleRotation = new GimbalAngleRotation();
gimbalAngleRotation.setMode(GimbalAngleRotationMode.ABSOLUTE_ANGLE);
gimbalAngleRotation.setYaw(yaw);
gimbalAngleRotation.setDuration(0.5);
keyManager.performAction(KeyTools.createKey(GimbalKey.KeyRotateByAngle), gimbalAngleRotation, new CommonCallbacks.CompletionCallbackWithParam<EmptyMsg>() {
@Override
public void onSuccess(EmptyMsg emptyMsg) {
}
@Override
public void onFailure(@NonNull IDJIError error) {
}
});
Am I doing it wrong? Do I need to specify the gimbal that i want to move? If so, how do I do that?
Hope you can help me. Thank you.
请先登录再写评论。
评论
2 条评论