Pete,
Thanks much for your reply. :D
I am referring to the TCAS_DATA structure mentioned in the "FS2002/4 A.I. Traffic Data (for TCAS applications and similar)" section of the SDK.
I am trying to figure out how to read whether the aircraft is in flight plan, pushback, taxi, etc. from C#. VB code would do as well.
Tom
typedef struct _TCAS_DATA
{ DWORD id; // 0 = empty, otherwise this is an FS-generated ID.
(Do not use this for anything other than checking if the slot is empty or used—it may be re-used for other things at a later date).
float lat; // 32-bit float, in degrees, –ve = South
float lon; // 32-bit float, in degrees, –ve = West
float alt; // 32-bit float, in feet
WORD hdg; // 16-bits. Heading. Usual 360 degrees == 65536 format.
// Note that this is degrees TRUE, not MAG
WORD gs; // 16-bits. Knots Ground Speed
short vs; // 16-bits, signed feet per minute V/S
char idATC[15]; // Zero terminated string identifying the aircraft. By default this is:
// Airline & Flight Number, or Tail number
// For Tail number, if more than 14 chars you get the *LAST* 14
// Airline name is truncated to allow whole flight number to be included
BYTE bState; // Zero in FS2002, a status indication in FS2004—see list below.
WORD com1; // the COM1 frequency set in the AI aircraft’s radio. (0Xaabb as in 1aa.bb)
} TCAS_DATA;
The “bState” value is new for FS2004. When non-zero it gives the current status of the AI aircraft, as follows:
0x80 128 Initialising
0x81 129 Sleeping
0x82 130 Filing flight plan
....