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("");