How do you use I2C port on navx board?
We’re using a 2m rev robotics distance sensor which works to get distance when plugged into the roboRio’s I2C port but we were unable to use the distance sensor when it is plugged into the port on the navx board. I know about the issue of a possible rio lockup when using the rio’s port so I would like to get the distance while not using the rio’s I2C port.
Is there any documentation or examples which show how to get the distance from the distance sensor when it is plugged into the navx’s I2C port?
The I2C on the NavX is a passthrough of the RoboRIO MXP I2C, so you use the normal WPILib I2C functions to access it.
Be aware that teams have seen long delays (but not full lockups) reading the MXP I2C port as well.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.