![Kauai Labs navX2-MXP User Manual Download Page 84](http://html1.mh-extra.com/html/kauai-labs/navx2-mxp/navx2-mxp_user-manual_3634856084.webp)
Advanced
Serial Protocol
)(LowByte,LowNibble)
Data Type Encoding (Binary)
Binary encoding is used for all Binary message elements. All Binary-formatted data types that are signed
are encoded as
. All multi-byte data types are in
standard ‘packed’ data types are used to increase storage efficiency.
Data Type
Range
Byte Count
Unsigned Byte
0 to 255
1
Unsigned Short
0 to 65535
2
Signed Short
-32768 to 32768
2
Signed Hundredths
-327.68 to 327.67
2
Unsigned Hundredths
0.0 to 655.35
2
Signed Thousandths
-32.768 to 32.767
2
Signed Pi Radians
-2 to 2
2
-32768.9999 to 32767.9999
4
Unsigned Long
0 to 4294967295
4
*Unsigned Hundredths: original value * 100 rounded to nearest integer
*Signed Hundredths: original value * 100 rounded to nearest integer
*Signed Thousandths: original value * 1000 rounded to nearest integer
*Signed Pi Radians: original value * 16384 rounded to nearest integer
Start of Message
Each message begins with “start of message” indicator (a ‘!’ character), which indicates that the
following bytes contain a message.
Binary Message Indicator
Each binary message includes a “binary message” indicator (a ‘#’ character), which indicates that the
following bytes contain a binary message.
Binary Message Length
Each Binary message contains a length value (a value from 0-255), which indicates that the number of
bytes which follow in the Message Body and Message Termination.
Message ID
The Message ID indicates the type of message, which may be one of the following:
ID
Message Type
Encoding
81