SonTek/YSI
ADVField/Hydra Operation Manual (September 1, 2001) 95
ADV data with compass/tilt sensor installed
The structure
ADVCompass
(below) is used when the optional compass/tilt sensor is installed (to-
tal size 24 bytes).
typedef struct {
unsigned char Id; /* Data record ID, 0x83 */
unsigned char Nbytes; /* Number of bytes in record = 24 */
unsigned int SampleNum; /* From start of data collection */
int XYZVel[3]; /* x/y/z vel in 0.1 mm/s */
unsigned char Amp[3]; /* Amplitude 1, 2, 3 */
unsigned char Cm[3]; /* Correlation 1, 2, 3 */
int Heading; /* in 0.1 deg */
int Pitch; /* in 0.1 deg */
int Roll; /* in 0.1 deg */
unsigned int ChkSum; /* 2 byte checksum of preceding 22 bytes */
} ADVCompass;
ADV data with temperature and/or pressure sensors installed
The structure
ADVTempPres
(below) is used when the optional temperature and/or pressure sen-
sors are installed (total size 22 bytes).
typedef struct {
unsigned char Id; /* Data record ID, 0x85 */
unsigned char Nbytes; /* Number of bytes in record = 22 */
unsigned int SampleNum; /* From start of data collection */
int XYZVel[3]; /* x/y/z vel in 0.1 mm/s */
unsigned char Amp[3]; /* Amplitude 1, 2, 3 */
unsigned char Cm[3]; /* Correlation 1, 2, 3 */
int Temp; /* in 0.01 deg C */
unsigned int Press; /* in counts (0-65535) */
unsigned int ChkSum; /* 2 byte checksum of preceding 20 bytes */
} ADVTempPres;
ADV data with compass/tilt sensor and with temperature and/or pressure sensors installed
The structure
ADVCompassTempPres
(below) is used when the optional compass/tilt sensor, and
the optional temperature and/or pressure sensors are installed (total size 28 bytes).
typedef struct {
unsigned char Id; /* Data record ID, 0x87 */
unsigned char Nbytes; /* Number of bytes in record = 28 */
unsigned int SampleNum; /* From start of data collection */
int XYZVel[3]; /* x/y/z vel in 0.1 mm/s */
unsigned char Amp[3]; /* Amplitude 1, 2, 3 */
unsigned char Cm[3]; /* Correlation 1, 2, 3 */
int Heading; /* in 0.1 deg */
int Pitch; /* in 0.1 deg */
int Roll; /* in 0.1 deg */
int Temp; /* in 0.01 deg C */
unsigned int Press; /* in counts (0-65535) */
unsigned int ChkSum; /* 2 byte checksum of preceding 26 bytes */
} ADVCompassTempPres;