go_away

Author Topic: programming target tracking in roborealm  (Read 2988 times)

0 Members and 1 Guest are viewing this topic.

Offline maverick monkTopic starter

  • Robot Overlord
  • ****
  • Posts: 204
  • Helpful? 0
programming target tracking in roborealm
« 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.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,658
  • Helpful? 169
    • Society of Robots
Re: programming target tracking in roborealm
« Reply #1 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

 


Get Your Ad Here

data_list