更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-07 14:01:01 +08:00
parent 4111852e0b
commit ff6d706dfe

View File

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