Go to Post How you say something is often just as important as what you say. - Rachel Lim [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 16-01-2005, 20:02
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Camera Auto Tracking?

We got the camera setup and calibrated using the GUI. Is there a way to test the tracking of the target using the GUI? We have the pan and tilt servo motors hooked up.
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.

Last edited by Ryan Cumings : 16-01-2005 at 20:07.
  #2   Spotlight this post!  
Unread 16-01-2005, 20:41
Zalumaskov's Avatar
Zalumaskov Zalumaskov is offline
Premier
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Place
Posts: 12
Zalumaskov is on a distinguished road
Re: Camera Auto Tracking?

once you have taken a frame you and have selected a color to track go to the servo tab and enable auto servo mode. Now when you go to the color tab and track, your servo should follow that color.

I also have another question to add about auto servo mode in the GUI. Does it work with pan only? I'm sure I have both servos in the right places (Servo0(pan),Servo1(tilt))?
  #3   Spotlight this post!  
Unread 16-01-2005, 20:45
MichaelGoldfarb MichaelGoldfarb is offline
Registered User
AKA: Goldfarb
FRC #0312 (Heatwave)
Team Role: Programmer
 
Join Date: Aug 2004
Rookie Year: 2003
Location: St. Pete, FL
Posts: 11
MichaelGoldfarb is an unknown quantity at this point
Send a message via AIM to MichaelGoldfarb Send a message via MSN to MichaelGoldfarb
Re: Camera Auto Tracking?

Quote:
Originally Posted by Zalumaskov
once you have taken a frame you and have selected a color to track go to the servo tab and enable auto servo mode. Now when you go to the color tab and track, your servo should follow that color.

I also have another question to add about auto servo mode in the GUI. Does it work with pan only? I'm sure I have both servos in the right places (Servo0(pan),Servo1(tilt))?
We've been working w/ that GUI and frankly it's worthless. When auto servo is set the servos will not respond. However we were able to get it working from a terminal interface. Look at the documentation for all the commands it pretty easy even w/o the GUI.
__________________
I'm crazy!
  #4   Spotlight this post!  
Unread 16-01-2005, 21:07
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Camera Auto Tracking?

Quote:
Originally Posted by Zalumaskov
Does it work with pan only? I'm sure I have both servos in the right places (Servo0(pan),Servo1(tilt))?
Yes, that is what we have observed. The GUI only enables the pan servo. I recommend getting the camera hooked up to your RC as soon as possible and use the IFI-supplied camera code. The GUI provided is seriously lacking in quality.
  #5   Spotlight this post!  
Unread 19-01-2005, 22:10
MichaelGoldfarb MichaelGoldfarb is offline
Registered User
AKA: Goldfarb
FRC #0312 (Heatwave)
Team Role: Programmer
 
Join Date: Aug 2004
Rookie Year: 2003
Location: St. Pete, FL
Posts: 11
MichaelGoldfarb is an unknown quantity at this point
Send a message via AIM to MichaelGoldfarb Send a message via MSN to MichaelGoldfarb
Re: Camera Auto Tracking?

Quote:
Originally Posted by Dave Flowerday
Yes, that is what we have observed. The GUI only enables the pan servo. I recommend getting the camera hooked up to your RC as soon as possible and use the IFI-supplied camera code. The GUI provided is seriously lacking in quality.
We've had some problems w/ the GUI that First supplied. It was unable to control the servos when you set them to auto. However it seems to work great when you configure the camera through the command terminal.
__________________
I'm crazy!
  #6   Spotlight this post!  
Unread 21-01-2005, 10:54
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: Camera Auto Tracking?

Quote:
Originally Posted by Dave Flowerday
Yes, that is what we have observed. The GUI only enables the pan servo. I recommend getting the camera hooked up to your RC as soon as possible and use the IFI-supplied camera code. The GUI provided is seriously lacking in quality.
To add to what Dave said, the config parameters that the camera takes, step size being one of them, are almost perfect in the IFI supplied RC code. When we hooked the camera up to our 2004 bot we expected to do a lot of tweaking, but what they gave us works pretty darn well. Almost out of the box we were able to drive towards a vision tetra and with a few more lines of code were able to stop when we got close to it. Hook it up to the RC and start playing around, it's easier than you probably think.
  #7   Spotlight this post!  
Unread 21-01-2005, 11:06
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?

I got our camera working on our 04 bot yesterday, but the bot was getting absolutely no traction on the floor in our shop, so it would try to correct but keep skidding the wrong way, so it would way over correct then the wheels would catch and it would swerve violently the other way. I think I got a program fix for this but we will see today. And today we should get electronics on the kitbot so we can play with taht while build team builds our real bot.
  #8   Spotlight this post!  
Unread 21-01-2005, 11:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera Auto Tracking?

Quote:
Originally Posted by russell
I got our camera working on our 04 bot yesterday, but the bot was getting absolutely no traction on the floor in our shop, so it would try to correct but keep skidding the wrong way...
Our kitbot testbed is put together with two-wheel drive. It was uncontrollably "skiddy", especially with the single joystick code. So we just added a bunch of ballast, and now it drives like a dream.

Our next hurdle is color calibration. Getting the right color vision targets and sufficient light on the practice field is proving to be a challenge at the moment.
  #9   Spotlight this post!  
Unread 22-01-2005, 02:06
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Camera Auto Tracking?

Quote:
Originally Posted by Alan Anderson
It was uncontrollably "skiddy", especially with the single joystick code. So we just added a bunch of ballast, and now it drives like a dream.
Geez...we are fighting the same thing. "Oversteer". Our test bot looks like it's got a BAC of 1.1% driving toward the tetra... What did you try and do to ballast the robot oversteer? We've added some EXP joystick code, lowered the max output of the PWM to like 145 forward, and played with the varible "steer_comp"...but it's still seems uncontrollably wacky or drunk...Any idea you can share?
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #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.
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
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 00:36.

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