From 45c2f84e7284898fcaf81b99611328e2ccf169e5 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 16:03:12 +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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 2e34b6e..e79c90c 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1455,28 +1455,28 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) float xxx = n->getDoubleValue(); PosMsg->jwhtext[3] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/gps/indicated-vertical-speed"); + xxx = fgGetDouble("/instrumentation/gps/indicated-vertical-speed",true); PosMsg->jwhtext[4] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/airspeed-indicator/indicated-speed-kt"); //指示空速 + xxx = fgGetDouble("/instrumentation/airspeed-indicator/indicated-speed-kt",true); //指示空速 PosMsg->jwhtext[5] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/airspeed-indicator/true-speed-kt"); //真空速 + xxx = fgGetDouble("/instrumentation/airspeed-indicator/true-speed-kt",true); //真空速 PosMsg->jwhtext[6] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/gps/indicated-longitude-deg"); + xxx = fgGetDouble("/instrumentation/gps/indicated-longitude-deg",true); PosMsg->jwhtext[7] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/gps/indicated-latitude-deg"); + xxx = fgGetDouble("/instrumentation/gps/indicated-latitude-deg",true); PosMsg->jwhtext[8] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/gps/indicated-altitude-ft"); + xxx = fgGetDouble("/instrumentation/gps/indicated-altitude-ft",true); PosMsg->jwhtext[9] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/comm/frequencies/selected-mhz"); //守护频点 + xxx = fgGetDouble("/instrumentation/comm/frequencies/selected-mhz",true); //守护频点 PosMsg->jwhtext[10] = XDR_encode_float (xxx); - xxx = fgGetDouble("/instrumentation/transponder/id-code"); + xxx = fgGetDouble("/instrumentation/transponder/id-code",true); PosMsg->jwhtext[11] = XDR_encode_float (xxx); //n = fgGetNode("");