-
Notifications
You must be signed in to change notification settings - Fork 6
/
FreeD.h
34 lines (26 loc) · 857 Bytes
/
FreeD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef FreeD_h
#define FreeD_h
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#define FREE_D_D1_PACKET_SIZE 29
typedef struct
{
unsigned int ID; // Camera ID
double Pan; // Camera Pan Angle
double Tilt; // Camera Tilt Angle
double Roll; // Camera Roll Angle
double X; // Camera X - Position
double Y; // Camera Y - Position
double Z; // Camera Height(Z - Position)
int Zoom; // Camera Zoom
int Focus; // Camera Focus
unsigned char Spare[2]; // Spare / User Defined(16 bits)
} FreeD_D1_t;
int FreeD_D1_unpack(unsigned char *buf, int len, FreeD_D1_t* dst);
int FreeD_D1_pack(unsigned char *buf, int len, FreeD_D1_t* src);
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* FreeD_h */