osdk调用云台移动角度,左移4度停止后,云台仍然在以很小的速度便宜?为什么没有停止
Completedosdk调用云台移动角度,左移4度停止后,云台仍然在以很小的速度便宜?为什么没有停止
-
GimbalModule::Rotation rotation;// Get origin rotation.GimbalSingleData data = AH_Cockpit::getinstance()->gimbal->getGimbalData(PAYLOAD_INDEX_0);yaw_dev = data.yaw;
rotation.roll = data.roll;rotation.yaw = data.yaw - 4.20;rotation.rotationMode = 0;// Set rotate to the angle of pitch.rotation.pitch = data.pitch;rotation.time = 0.5;AH_Cockpit::getinstance()->gimbal->rotateSyncSample(PAYLOAD_INDEX_0, rotation);
Please sign in to leave a comment.
Comments
4 comments