Kauai Labs navX2-MXP User Manual page 91

Robotics navigation sensor
Table of Contents

Advertisement

Advanced
Register Protocol
– The SPI bus master lowers the CS line.
– The SPI bus master initiates a series of SPI bus transactions, where the number of individual
8-bit transfers is equal to the count previously specified, plus one additional transfer for a CRC
value transmitted by the nav-sensor.
– The SPI bus master raises the CS line to complete the read sequence.
CRC Calculation
The SPI protocol requires use of a
transmission over the high-speed SPI bus. Each SPI protocol message must end with a byte containing the
CRC value.
The SPI protocol uses a 7-bit CRC with a polynomial value of 0x91.
For example code to calculate the CRC value, please see Line 445 of the
navX-sensor Register Data Types
All multi-byte registers are in
All registers with 'signed' data are 2's-complement.
Data Type
Unsigned Byte
Unsigned Short
Signed Short
signed hundredths
Unsigned Hundredths
Signed Thousandths
Signed Pi Radians
Q16.16
Unsigned Long
*Unsigned Hundredths: original value * 100 to rounded to nearest integer
*Signed Hundredths: original value * 100 rounded to nearest integer
*Signed Thousandths: original value * 1000 rounted to nearest integer
*Signed Pi Radians: original value * 16384 rounded to nearest integer
navX-sensor Register Map
Address (Hex)
cylic redundancy check
little-endian
format.
Range
0 to 255
0 to 65535
-32768 to 32768
-327.68 to 327.67
0.0 to 655.35
-32.768 to 32.767
-2 to 2
-32768.9999 to 32767.9999
0 to 4294967295
Name
(CRC) allowing the detection of corrupted data
IMURegisters.h source
Byte Count
1
2
2
2
2
2
2
4
4
Access
code.
Range/Data Type
88

Advertisement

Table of Contents
loading

Related Products for Kauai Labs navX2-MXP

Table of Contents