Color Sensor Settings
Integration Period
Section titled “Integration Period”The integration period of the sensor is how long it reads light for.
The sensor operates similarly to a camera, detecting light that hits the sensor over a given period of time. Therefore, the integration period is similar to exposure time.
Longer integration times will be slightly more stable and have slightly longer range, at the tradeoff of slower reads. The default of 25ms is generally a good tradeoff between stability and speed.
//Sets the integration period to 25 mssettings.setColorIntegrationPeriod(ColorPeriod.k25ms);//Sets the integration period to 25 mssettings.SetColorIntegrationPeriod(ColorPeriod::k25ms);