Problems with my EV3 colour sensor
I have to detect some colours with my EV3 colour sensor and it doesn't work as it is supposed. When I try the code debugging, it works fine, but when I try the code on the robot, without debugging it doesn't work. Is it one of the known issues to correct? And, will it work if I change put the NXT colour sensor instead of the EV3 colour sensor? (To change it I have to dismount a lot of things of my robot).
Otherwise, what am I doing wrong?
This is a simple code that works debugging but not when I run it on the robot
In this case, detecting always the same thing, if it is debugging, it moves a motor 180 degrees. Running it without debugging, does the 'else' case, it moves the motor just 90 degrees