ftc-9773 / ftc_app_9773_velocity_vortex

Robocracy 9773's official code for the 2016-17 FTC Velocity Vortex challenge
1 stars 3 forks source link

Disable the i2c sensors when not being used #63

Closed ram4robotics closed 7 years ago

ram4robotics commented 7 years ago

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.

ram4robotics commented 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.