diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index c47aa89..d9bf31d 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1427,8 +1427,15 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) PosMsg->angularVel[i] = XDR_encode_float (motionInfo.angularVel(i) * timeAccel); for (unsigned i = 0 ; i < 3; ++i) PosMsg->linearAccel[i] = XDR_encode_float (motionInfo.linearAccel(i) * timeAccel * timeAccel); - for (unsigned i = 0 ; i < 3; ++i) - PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); + +//zhongjin +// for (unsigned i = 0 ; i < 3; ++i) +// PosMsg->angularAccel[i] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); + PosMsg->angularAccel[0] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); + PosMsg->angularAccel[1] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); + PosMsg->angularAccel[2] = XDR_encode_float (motionInfo.angularAccel(i) * timeAccel * timeAccel); + + } xdr_data_t* ptr = msgBuf.properties(); xdr_data_t* data = ptr;