更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-11-07 15:49:44 +08:00
parent 0382bacdb4
commit 4d7cb4878b

View File

@ -1438,6 +1438,11 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
//zhongjin //zhongjin
std::string mAirportid = fgGetString("/instrumentation/comm/airport-id");
strncpy(MsgHdr->Callsign, mAirportid.c_str(), 4);
MsgHdr->Callsign[4 - 1] = '\0';
float heading = ifce.get_Psi(); float heading = ifce.get_Psi();
float pitch = ifce.get_Theta(); float pitch = ifce.get_Theta();
float roll = ifce.get_Phi(); float roll = ifce.get_Phi();