Society of Robots - Robot Forum

Software => Software => Topic started by: maverick monk on January 08, 2009, 06:42:15 PM

Title: programming target tracking in roborealm
Post by: maverick monk on January 08, 2009, 06:42:15 PM
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.
Title: Re: programming target tracking in roborealm
Post by: Admin on January 23, 2009, 03:12:43 AM
We can't help without your RoboRealm file :P

I recommend asking RoboRealm for help in their forum, STeven should be more familiar with any issues.

As for the pseudo code, give it an attempt and we'll tell you if its right or wrong. I don't even know what language you want it in! :P