Thread: CAM ERROR!
View Single Post
  #1   Spotlight this post!  
Unread 03-02-2005, 13:44
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Exclamation CAM ERROR!

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! */
}
}
}