Log in

View Full Version : CAM ERROR!


magical hands
03-02-2005, 13:44
When i run the programm in (In terminal window it shows "Error setting color tracking parameters Expected 9, and got 0). Anyone knows why this is happening and this the code that i am running.

/* Add your own autonomous code here. */
if(camera_find_color(RED) == 0)
{
if(pwm01 < 255)
{
pwm01 = counter++;
}

else if (pwm01 > 250)
{
counter = 0;
pwm01 =counter;
}
}
else if(camera_find_color(RED) == 4)
{
pwm01 = 27;
}
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata); /* DO NOT DELETE, or you will get no PWM outputs! */
}
}
}

:eek: :yikes: :ahh: ;)