typedef struct union question
- From: "Thomas Magma" <somewhere@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Sep 2006 10:08:10 -0700
Hello,
I am programming in MS Flight Simulator (FS) environment. I #include a FS
header file called gauges.h in my C code. In that header file there is a
typedef struct that has some system variables that I would like to use in my
code. The typedef looks like this:
typedef struct XYZF64
{
union
{
struct { FLOAT64 lon; FLOAT64 alt; FLOAT64 lat; };
struct { FLOAT64 x; FLOAT64 y; FLOAT64 z; };
struct { FLOAT64 pitch; FLOAT64 heading; FLOAT64 bank;};
};
}
XYZF64, *PXYZF64, **PPXYZF64,
POS3_FLOAT64,
VEL3_FLOAT64, *PVEL3_FLOAT64, **PPVEL3_FLOAT64,
ACC3_FLOAT64,
ROT3_FLOAT64,
ROV3_FLOAT64,
ROA3_FLOAT64;
For instance, how do I declare and use the x, y & z variables in my code? I
believe them to be system variables that are continuously being updated by
FS and I would like to be able to read their values.
Thanks,
Thomas
.
- Follow-Ups:
- Re: typedef struct union question
- From: Victor Bazarov
- Re: typedef struct union question
- Prev by Date: Re: Passing BYTE type?
- Next by Date: Re: typedef struct union question
- Previous by thread: Re: Passing BYTE type?
- Next by thread: Re: typedef struct union question
- Index(es):
Relevant Pages
|