Closed ram4robotics closed 7 years ago
In the end, we abandoned this disabling/reenabling sequence as the currently suggested method seems to cause more problems than it solves. The color sensor gets stale values after re-enabling, and this affects the reliability in non-deterministic way.
The original problem with i2c bus overload seems to have mostly diminished after we started using 2 CDIMs instead of just 1.
Read the following post in the FTC Forum: http://ftcforum.usfirst.org/showthread.php?7724-Gyro-Read-Latency-Development-team-update
Disabling the i2c sensors (color, navx, range) when they are not being used will improve the update times significantly.
Look for code samples from Philbot and mikets.