Closed TwinFan closed 3 years ago
Actually...obsolete with #27 as then acInfoTexts.flightNum
is transferred already, hence flight_id
filled according to the standard GetFlightId()
functionality. (Strictly speaking not according to a derived classes implementation...but I decide we don't need that now.)
Current Situation / Problem No value for
flight_id
is currently transferred to the Remote Client. Therefore, the dataRefsim/cockpit2/tcas/targets/flight_id
is not populated.Suggested Solution
flight_id
is populated with what the virtual functionXPMP2::Aircraft::GetFlightId()
returns. Transfer this value via message to the Remote Client in a new field. That requires a new version of theRemoteAcDetailTy
message and therefore handling and testing of cross-version scenarios.On the remote side, the value can then just be stored in
XPMP2::Aircraft::acInfoTexts.flightNum
, from where it will automatically be used for populating the dataRefsim/cockpit2/tcas/targets/flight_id
.Benefits dataRef
sim/cockpit2/tcas/targets/flight_id
filled in instances where TCAS/AI is controlled by the Remote Client.Additional context Thread on X-Plane.org.