更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-06 17:11:04 +08:00
parent 0915505fb7
commit 19094adcff

View File

@ -1441,9 +1441,9 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
float pitch = ifce.get_Theta(); float pitch = ifce.get_Theta();
float roll = ifce.get_Phi(); float roll = ifce.get_Phi();
PosMsg->angularAccel[0] = XDR_encode_float (motionInfo.angularAccel(0) * timeAccel * timeAccel); PosMsg->angularAccel[0] = XDR_encode_float (heading);
PosMsg->angularAccel[1] = XDR_encode_float (motionInfo.angularAccel(1) * timeAccel * timeAccel); PosMsg->angularAccel[1] = XDR_encode_float (pitch);
PosMsg->angularAccel[2] = XDR_encode_float (motionInfo.angularAccel(2) * timeAccel * timeAccel); PosMsg->angularAccel[2] = XDR_encode_float (roll);
} }