更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-07 14:57:41 +08:00
parent 8e880687cd
commit 6490ee1602

View File

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