Ok, its science fair time of year again and i am, once again, over my head (nextyear im growing beanplants, i swear to god im done w/ the stress, robotics will just be a hobby).
im attempting to do target tracking with roborealm and a pololu serial 8 servo controller. I am using an old webcam and the servo;s are mounted on a pan& tilt base.
ok, i cant get my servo's to turn more than a few degree's without the red 'fatal error (the best kind)' light showing up, i can only pick ranges between about 87 and 157 instead of 0-255. I also do not know how to get this code to work:
psuedo code:
if COG_X < center of camera then turn right until they are the same
if COG_X > center of camera then turn right untill they are the same
and so on, with the Y axis as well,
any help would be greatly appreciated.