Go to Post I wonder how many games we could come up with that are not the one for FRC 2008. - AndrewN [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2005, 16:47
incognito_NICK's Avatar
incognito_NICK incognito_NICK is offline
hidden in the corner
AKA: Nick Ferreira
#0179 (Children of the swamp (swampthing))
Team Role: Programmer
 
Join Date: Nov 2004
Rookie Year: 2002
Location: palm beach gardens
Posts: 15
incognito_NICK will become famous soon enough
Send a message via ICQ to incognito_NICK Send a message via AIM to incognito_NICK
servos and the camera

is it possible to have the robot track a tetra without the servos? if it is possible, how can it be done?
  #2   Spotlight this post!  
Unread 08-02-2005, 16:51
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Re: servos and the camera

Yes, but you would have to manually make the robot turn if the blob does not appear in the camera's original field of view. It is very possible but more complicated if you don't use the servos.
  #3   Spotlight this post!  
Unread 08-02-2005, 16:53
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: servos and the camera

Quote:
Originally Posted by incognito_NICK
is it possible to have the robot track a tetra without the servos? if it is possible, how can it be done?
We were thinking about doing that and came up with some methods. You could either..

Use the bouding box variables given from the cam to try and line it up manually.

Or..

Take the pan servo outputs from the camera, input them into the RC, run it as the x value on a one joystick drive algorithm, and move the drive motors to try and "trick" the camera into thinking the servo moved.
  #4   Spotlight this post!  
Unread 08-02-2005, 23:22
logicalhippo logicalhippo is offline
Registered User
AKA: Russell McClellan
#0213 (Dirty Birds)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Keene, NH
Posts: 11
logicalhippo is an unknown quantity at this point
Send a message via AIM to logicalhippo
Re: servos and the camera

Our team is doing the tracking without the servos. So far the robot rotates in place to line up with the blob. We wrote our own camera code using the FIRST serial driver. Basically we scale the x-value (data byte 1 of the T packet) of the blob from 3-158 to 0-255, then feed it into the x-value of a one joystick algorithm. It works quite nicely.

unfortunately, you cannot just send the pan servo out to the rc. The algorithm the camera uses assumes that when it sends a value, it will be rotated to the corresponding heading. If you wanted to use these values, you could detect changes in the servo output and then rotate the robot the corresponding angle. Overall, it's more trouble than it is worth, because the x-value of the blob (sent in the serial stream) is usable in a one-joystick algorithm.
  #5   Spotlight this post!  
Unread 08-02-2005, 23:51
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: servos and the camera

Except the "x value of the blob" is not in the same format as the joystick values. Center is 79 so you would have to..... Well the easiest way I think would be to just add 48 too all of them. Something like that.
  #6   Spotlight this post!  
Unread 09-02-2005, 00:00
logicalhippo logicalhippo is offline
Registered User
AKA: Russell McClellan
#0213 (Dirty Birds)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Keene, NH
Posts: 11
logicalhippo is an unknown quantity at this point
Send a message via AIM to logicalhippo
Re: servos and the camera

right. That's what I meant by "scale from 3-158 to 0-255" -> I subtract 81 and then multiply by 127 then divide by 81 then add 127.
Closed Thread


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
Calabrating the servos rust710 Motors 9 25-12-2002 20:41
Need help in creating program to use servo's to shift drive archiver 2001 19 24-06-2002 00:35


All times are GMT -5. The time now is 01:12.

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