From 83fc580f6cbd7ac06d406d71431c6c37b4794e99 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Sun, 6 Nov 2022 17:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/MultiPlayer/multiplay?= =?UTF-8?q?mgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MultiPlayer/multiplaymgr.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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;