From 6490ee1602caa70d2a1f06fe42ba27753ddfb500 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 14:57:41 +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 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 51cca2d..a4edc58 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1446,28 +1446,28 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) PosMsg->jwhtext[1] = XDR_encode_float (pitch); PosMsg->jwhtext[2] = XDR_encode_float (roll); - //SGPropertyNode* n = fgGetNode("/sim/instrumentation/gps/indicated-ground-speed-kt",true); - //float speed = n->getDoubleValue(); - //PosMsg->jwhtext[3] = XDR_encode_float (speed); + SGPropertyNode* n = fgGetNode("/instrumentation/gps/indicated-ground-speed-kt",true); + float speed = n->getDoubleValue(); + PosMsg->jwhtext[3] = XDR_encode_float (speed); /* - n = fgGetNode("/sim/instrumentation/gps/indicated-vertical-speed"); + n = fgGetNode("/instrumentation/gps/indicated-vertical-speed"); - n = fgGetNode("/sim/instrumentation/airspeed-indicator/indicated-speed-kt"); //指示空速 + n = fgGetNode("/instrumentation/airspeed-indicator/indicated-speed-kt"); //指示空速 - n = fgGetNode("/sim/instrumentation/airspeed-indicator/true-speed-kt"); //真空速 + n = fgGetNode("/instrumentation/airspeed-indicator/true-speed-kt"); //真空速 - n = fgGetNode("/sim/instrumentation/gps/indicated-longitude-deg"); + n = fgGetNode("/instrumentation/gps/indicated-longitude-deg"); - n = fgGetNode("/sim/instrumentation/gps/indicated-latitude-deg"); + n = fgGetNode("/instrumentation/gps/indicated-latitude-deg"); - n = fgGetNode("/sim/instrumentation/gps/indicated-altitude-ft"); + n = fgGetNode("/instrumentation/gps/indicated-altitude-ft"); - n = fgGetNode("/sim/instrumentation/comm/airport-id"); //起飞机场 + n = fgGetNode("/instrumentation/comm/airport-id"); //起飞机场 - n = fgGetNode("/sim/instrumentation/comm/frequencies/selected-mhz"); //守护频点 + n = fgGetNode("/instrumentation/comm/frequencies/selected-mhz"); //守护频点 - n = fgGetNode("/sim/instrumentation/transponder/id-code"); + n = fgGetNode("/instrumentation/transponder/id-code"); //n = fgGetNode("");