Go to Post It's not about a team having lots of money to spend to travel the world to share FIRST but how the team draws the world into their FIRST experience. - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated Infrared Tracking Code Kevin Watson Programming 0 18-02-2004 21:41
trouble with beacon tracking code [53] opticruzer Programming 9 27-01-2004 12:19
auto archiving of posts Joe Ross CD Forum Support 4 01-01-2004 02:04
My auto is better than yours.. lol randomperson Programming 25 07-04-2003 12:10
picking auto program Mike375 Programming 19 03-03-2003 15:47


All times are GMT -5. The time now is 04:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi