I am using the Ev3 + ColorSensor + USB Connection and Control Center to debug. Now I was experimenting with the different colors of the sensors led (any docu somewhere which colors are possible? Full rgb?). I used setFloodlight fron eV3ColorSensor to change colors. This one only works with (well thats in the source code) blue white and red. But when I want to switch the sensor back off I used setFloodlight (boolean) with false. Crashed. This methode calles the other setFloodlight with Color.none but that's not supported (at least I think so):
Code: Select all
public boolean setFloodlight(int color)
mode = COL_AMBIENT;
mode = COL_COLOR;
mode = COL_REFLECT;
// TODO: Should we ignore a wrong color or throw an exception?
throw new IllegalArgumentException("Invalid color specified");
// TODO Auto-generated method stub
I gues this is a bug. Or did I miss something?