osdk调用云台移动角度,左移4度停止后,云台仍然在以很小的速度便宜?为什么没有停止
已完成osdk调用云台移动角度,左移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);
请先登录再写评论。
评论
4 条评论