31
GPStation-6 User Manual Rev 2
Messages
Table 2: Field Types
Type
Binary Size
(bytes)
Description
Char
1
The
char
type is an 8-bit integer in the range -128 to +127. This integer value
may be the ASCII code corresponding to the specified character. In ASCII or
Abbreviated ASCII this comes out as an actual character.
UChar
1
The
uchar
type is an 8-bit unsigned integer. Values are in the range from +0
to +255. In ASCII or Abbreviated ASCII this comes out as a number.
Short
2
The short type is 16-bit integer in the range -32768 to +32767.
UShort
2
The same as Short except it is not signed. Values are in the range from +0 to
+65535.
Long
4
The
long
type is 32-bit integer in the range -2147483648 to +2147483647.
ULong
4
The same as Long except it is not signed. Values are in the range from +0 to
+4294967295.
Double
8
The
double
type contains 64-bits: 1 for sign, 11 for the exponent and 52 for the
mantissa. Its range is ±1.7E308 with at least 15 digits of precision. This is IEEE
754.
Float
4
The
float
type contains 32-bits: 1 for the sign, 8 for the exponent and 23 for the
mantissa. Its range is ±3.4E38 with at least 7 digits of precision. This is IEEE
754.
Enum
4
A 4-byte enumerated type beginning at zero (an unsigned long). In binary, the
enumerated value is output. In ASCII or Abbreviated ASCII, the enumeration
label is spelled out.
GPSec
4
This type has two separate formats dependant on whether you requested a
binary or an ASCII format output. For binary, the output is in milliseconds and
is a
long
type. For ASCII, the output is in seconds and is a
float
type.
Hex
n
Hex is a packed, fixed length (n) array of bytes in binary but in ASCII or
Abbreviated ASCII is converted into 2 character hexadecimal pairs.
String
n
String is a variable length array of bytes that is null-terminated in the binary
case and additional bytes of padding are added to maintain 4-byte alignment.
The maximum byte length for each String field is shown in the row in the log or
command tables.
Содержание GPStation-6
Страница 89: ...OM 20000132 Rev 2 November 2012 ...