
WorkHorse H-ADCP Operation Manual
May
2015
EAR-Controlled Technology Subject to Restrictions Contained on the Cover Page.
Page 241
The Most Significant Bit is the first bit on the left of the binary word and will decide the sign of the varia-
ble. Below is a formula that you can apply to obtain the decimal value of the Roll using the above binary
word:
Decimal Roll = [(-1)x X x 2^
15
) + (decimal(YYY YYYY YYYY YYYY)) ] x Scale factor
Where the binary word is:
XYYY YYYY YYYY YYYY
Using this formula in this example, we obtain:
X = 1
Y…..Y = 111 1111 1110 1010
Scale Factor (see Table 48) = 0.01 degree
Thus,
Decimal Roll = [(-1) x 1 x 2^
15
+ (decimal (111 1111 1110 1010))] x 0.01deg
Decimal Roll = [-32768 + 32746] x 0.01deg
Decimal Roll = -0.22 degrees
The same method can be used for all PDx binary formats.
If you simply need to decode parts or all the data from each ensemble of your deployment PD0
data file into an ASCII file for post-processing, use
. See item 5 on the TRDI website.