From ff6d706dfe46ea381cffefe94e3f1c982048d16d Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 14:01:01 +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 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 35f8faa..e654b03 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1446,10 +1446,31 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) PosMsg->jwhtext[1] = XDR_encode_float (pitch); PosMsg->jwhtext[2] = XDR_encode_float (roll); - SGPropertyNode* n = fgGetNode("/sim/replay/log-raw-speed-multiplayer-values", true /*create*/); + SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt"); float speed = n->getDoubleValue(speed); PosMsg->jwhtext[3] = XDR_encode_float (speed); + n = fgGetNode("/sim/instrumentation/gps/indicated-vertical-speed"); + + n = fgGetNode("/sim/instrumentation/airspeed-indicator/indicated-speed-kt"); //指示空速 + + n = fgGetNode("/sim/instrumentation/airspeed-indicator/true-speed-kt"); //真空速 + + n = fgGetNode("/sim/instrumentation/gps/indicated-longitude-deg"); + + n = fgGetNode("/sim/instrumentation/gps/indicated-latitude-deg"); + + n = fgGetNode("/sim/instrumentation/gps/indicated-altitude-ft"); + + n = fgGetNode("/sim/instrumentation/comm/airport-id"); //起飞机场 + + n = fgGetNode("/sim/instrumentation/comm/frequencies/selected-mhz"); //守护频点 + + n = fgGetNode("/sim/instrumentation/transponder/id-code"); + + //n = fgGetNode(""); + + } xdr_data_t* ptr = msgBuf.properties();