We are getting inconsistent results when trying to read colors using the latest/greatest lejos code from soundforge. To verify that the sensor was fine, I fired up LabView and compared color values from both the old NXT RGB sensor, and the new EV3 sensor using different angles and distances, and a fixed positions. In all cases, the new sensor worked as expected.
However, when doing this same test using lejos code, we are getting values that are not stable. Only a few colors like green or blue are consistently detected, but the slightest movement of the sensor will result in unstable values, sometimes outside valid ranges. We are seeing this using the following methods .... getcolorID, getlightvalue, normlightvalue, etc. We also were not successful with the previous code base.
EV3 Color sensor as came in off the shelf kit (45506 I think)
Inside cover of EV3 box for color examples
Latest lejos code