Kauai Labs navX2-MXP User Manual page 88

Robotics navigation sensor
Table of Contents

Advertisement

Advanced
Serial Protocol
36
Flag value
0, 1
2
Integration Control Command
The Integration Control Command is sent in order to cause certain values being integrated on the navX-
sensor to be reset to 0.
Byte Offset
0
1
Integration Control Response
The Integration Control Response is sent in response to an Integration Control Command, confiming that
certain values being integrated on the navX-sensor have been reset to 0.
Byte Offset
0
1
In addition to the streaming Serial protocol, navX-sensors may be accessed over the I2C and SPI buses,
using a register-based protocol. This page documents the register-based protocol used on both the I2C and
SPI bus.
Register-based protocol overview
Unlike the streaming Serial protocol, which periodically sends out updates messages whenever new data
is available, the register based protocol is a "polled" interface, in that the consumer of the navX-sensor
data (in this case referred to as a "bus master") can request data from the navX-sensor at any time. At the
same time, when using the register-based protocol the bus master does not know when new data is
available.
To help this situation, a timestamp – which is updated whenever new data is available – is made
available. Therefore, the general approach to ensure each new data sample is retrieved is to regularly (at
the current navX-sensor update rate) retrieve both the timestamp and the data of interest), and if the
timestamp differs from the previous timestamp by the update rate as expressed in milliseconds, then the
data sample just retrieved is current, and no data has been missed.
Flags
Desription
Startup Gyro Calibration in progress
Startup Gyro Calibration complete
Element
Action
Parameter
Element
Action
Parameter
Register Protocol
16-bit Integer
Data Type
Uint8
(NAVX_INTEGRATION_CTL)
Uint32
Data Type
Uint8
(NAVX_INTEGRATION_CTL)
Uint32
85

Advertisement

Table of Contents
loading

Related Products for Kauai Labs navX2-MXP

Table of Contents