View Single Post
  #10   Spotlight this post!  
Unread 22-01-2005, 02:20
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Camera Auto Tracking?

Well I just got our robot working absolutely great, just by modifying the code. I dont have it right here with me, but basicaly what I did is I took that value for the pan servo, and instead of using that exact value to steer the robot, I made it into an int variable, then subtracted 127 from it, divided that value by three, then added 127, and used that value to steer the robot. Basically any time the robot goes to steer it only steers one third as sharp as the default code would make it do. The best part is that if your servo doesnt center exactly, then by changing the value of that 127 that you add back on to the value that does center the servo then you can correct for that. You can also change that 3 to make it more or less sensitive. You might also want to play with speed. The camera works bette if the bot goes slower.