16 |
|
#define ANG2R(r) (int)((r)*((1<<16)/M_PI)) |
17 |
|
#define R2ANG(c) (((c)+.5)*(M_PI/(1<<16))) |
18 |
|
|
19 |
< |
typedef struct { |
20 |
< |
float vsum; /* DSF sum */ |
21 |
< |
unsigned int nval; /* number of values in sum */ |
22 |
< |
unsigned short crad; /* radius (coded angle) */ |
19 |
> |
typedef union { |
20 |
> |
struct { |
21 |
> |
float v; /* DSF sum */ |
22 |
> |
unsigned int n; /* number of values in sum */ |
23 |
> |
} sum; /* sum for averaging */ |
24 |
> |
float val[2]; /* comparison values */ |
25 |
|
} GRIDVAL; /* grid value */ |
26 |
|
|
27 |
|
typedef struct { |