- Messages
- 13
- Country

hello everyone,
I am having a problem with getting arrival and departure time for the AI Flight plan. I am using SIMCONNECT_SIMOBJECT_TYPE.AIRCRAFT to get sim variables including Estimated arrival time and departure time but I get time in difference from current time to the estimated time like shown in attachment below.
code used is:
simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "AI TRAFFIC ETA", "hours", SIMCONNECT_DATATYPE.FLOAT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "AI TRAFFIC ETD", "hours", SIMCONNECT_DATATYPE.FLOAT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
thanks for any help.
I am having a problem with getting arrival and departure time for the AI Flight plan. I am using SIMCONNECT_SIMOBJECT_TYPE.AIRCRAFT to get sim variables including Estimated arrival time and departure time but I get time in difference from current time to the estimated time like shown in attachment below.
code used is:
simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "AI TRAFFIC ETA", "hours", SIMCONNECT_DATATYPE.FLOAT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
simconnect.AddToDataDefinition(DEFINITIONS.Struct1, "AI TRAFFIC ETD", "hours", SIMCONNECT_DATATYPE.FLOAT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
thanks for any help.