Go to Post Little kids playing soccer....or a typical Lunacy match. Ah, memories. :cool: - Travis Hoffman [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 12-02-2007, 16:32
geekofband007's Avatar
geekofband007 geekofband007 is offline
Machining Master
AKA: Gary Morse
FRC #0213 (Dirty Birds)
Team Role: Mechanical
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Keene, NH
Posts: 25
geekofband007 is an unknown quantity at this point
Send a message via AIM to geekofband007
camera tracking

Since our programmers are incapable of posting questions cause they are lazy i have to do it for them. ok so this is our problem...the camerea when it is serching is finding the light but is restarting the loop and isnt actually staying focused on the light itself. i right now cant give u a whole lot of info cause i am a mechanical guy and all the programming stuff looks like greek to me. anyway i might be able to post the code as soon as i am done beating these progammers
thanks
team 213
__________________
I SCUBA dive, sleep, Ski, game, eat, school, drumming, and thats about it haha.
"divers do it deeper"
  #2   Spotlight this post!  
Unread 12-02-2007, 16:35
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: camera tracking

1. Make sure you are using the latest code version from www.kevin.org/frc
2. If it see's the light and then quickly moves away, increase the SEARCH DELAY variable value. If this is not your problem, we need more details.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #3   Spotlight this post!  
Unread 12-02-2007, 16:53
geekofband007's Avatar
geekofband007 geekofband007 is offline
Machining Master
AKA: Gary Morse
FRC #0213 (Dirty Birds)
Team Role: Mechanical
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Keene, NH
Posts: 25
geekofband007 is an unknown quantity at this point
Send a message via AIM to geekofband007
Re: camera tracking

Thanks for the reply. We are using the latest release (January 16) from www.kevin.org/frc . We have adjusted the serch delay, however, this did not solve our problem.

When the program is executed, the camera will seek the light, and will track it for a little while (10 - 20 seconds or so.). However, after tracking the light, it appears as though the camera code was reset. The camera will reinitiate it's search pattern, until the light is found once again, and the cycle repeats. We have verified that the servos are proprly wired.

thanks again,
team 213
__________________
I SCUBA dive, sleep, Ski, game, eat, school, drumming, and thats about it haha.
"divers do it deeper"
  #4   Spotlight this post!  
Unread 12-02-2007, 17:00
ptan ptan is offline
Paul C. Tan., P.Eng.
AKA: Paul Tan
no team (Bolt Action)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2000
Location: Toronto
Posts: 61
ptan is a splendid one to beholdptan is a splendid one to beholdptan is a splendid one to beholdptan is a splendid one to beholdptan is a splendid one to beholdptan is a splendid one to behold
Re: camera tracking

Check your 7.2V power voltage. If it drops below 7.0V the camera seems to have problems.

Also, another thing you want to check is the cable powering the camera. We've found that even a slightly loose PWM connection will cause the power to the camera to drop intermittently when the camera is panning or tilting. That will confuse the software into thinking that the light has been lost and it will restart the searching algorithm again.

Let me know if this helps.

Paul Tan.
  #5   Spotlight this post!  
Unread 12-02-2007, 17:13
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: camera tracking

Go throught Tracking.h and change
Code:
// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or
// both of these values.
#define PAN_ROTATION_SIGN_DEFAULT +1
#define TILT_ROTATION_SIGN_DEFAULT -1
Hope this helps.
  #6   Spotlight this post!  
Unread 12-02-2007, 19:43
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: camera tracking

Quote:
Originally Posted by Bharat Nain View Post
1. Make sure you are using the latest code version from www.kevin.org/frc
2. If it see's the light and then quickly moves away, increase the SEARCH DELAY variable value. If this is not your problem, we need more details.
As another suggestion, Team 95 found last year that adjusting the search algorithm so that it continues from where it left off searching instead of going back to the top left makes it much more tolerant to short loss of target acquisition (at the possibility of making it take longer to acquire lock from scratch).
  #7   Spotlight this post!  
Unread 12-02-2007, 19:47
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: camera tracking

Quote:
Originally Posted by geekofband007 View Post
Since our programmers are incapable of posting questions cause they are lazy i have to do it for them. ok so this is our problem...the camerea when it is serching is finding the light but is restarting the loop and isnt actually staying focused on the light itself. i right now cant give u a whole lot of info cause i am a mechanical guy and all the programming stuff looks like greek to me. anyway i might be able to post the code as soon as i am done beating these progammers
thanks
team 213
My guess is that you're not powering the green light with a freshly charged robot battery.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 12-02-2007, 19:52
geekofband007's Avatar
geekofband007 geekofband007 is offline
Machining Master
AKA: Gary Morse
FRC #0213 (Dirty Birds)
Team Role: Mechanical
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Keene, NH
Posts: 25
geekofband007 is an unknown quantity at this point
Send a message via AIM to geekofband007
Re: camera tracking

we tried all of that and still nothing. hmmmmm this is really really starting to piss us off now
__________________
I SCUBA dive, sleep, Ski, game, eat, school, drumming, and thats about it haha.
"divers do it deeper"
  #9   Spotlight this post!  
Unread 12-02-2007, 19:58
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: camera tracking

Quote:
Originally Posted by geekofband007 View Post
we tried all of that and still nothing. hmmmmm this is really really starting to piss us off now
Print out the tracking data from the camera.

The camera is fussy, but in the end, it's pretty predictable.
  #10   Spotlight this post!  
Unread 12-02-2007, 20:20
Keo-san's Avatar
Keo-san Keo-san is offline
Registered User
AKA: Victor Marmol
FRC #1029 (WolvCats)
Team Role: Driver
 
Join Date: Feb 2006
Rookie Year: 2003
Location: Miami, FL
Posts: 25
Keo-san is an unknown quantity at this point
Re: camera tracking

We had a similar problem last Saturday. Our camera got the target and looked at it for about 3 seconds.Then it started the search algorithm all over again. We did everything and nothing helped. We borrowed another team's camera and tried again.This was the solution for us.Apparently The camera had some connectors corroded. We work in humid Miami so it might have been that. If you can try to borrow someone's camera or check the camera for physical defects.
__________________
Team 1029

www.wolvcatrobotics.com
CMU '11
  #11   Spotlight this post!  
Unread 12-02-2007, 23:27
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: camera tracking

Make sure the camera isn't mounted upside down in it's camera bracket. We did that and every time it locked on, about a second later, went off and started scanning again,...
  #12   Spotlight this post!  
Unread 12-02-2007, 23:36
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Re: camera tracking

I worked with the camera last year and had the exact same problem.

The solution is to change the code so that the camera does not go back to it's center positions when a new search is initiated (just do this once when you initialize the camera).

This solves the problem of when the camera goes past the light, detects it (blinks red) but then keeps going and seems to later change it's mind and sort of try to correct itself.

If your problem is instead finding the light and then keeping it in focus for a few seconds before moving away...try to change the +1/-1 values mentioned above or simply move the green light/move the camera to a different position. Sometimes there is interference at a particular angle from some other things (like a window or a light bulb).

Happy Coding.
__________________
  #13   Spotlight this post!  
Unread 12-02-2007, 23:40
general's Avatar
general general is offline
That's me!
AKA: Bryan
FRC #0213 (Dirty Birds)
Team Role: Webmaster
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Keene
Posts: 48
general is an unknown quantity at this point
Send a message via AIM to general
Re: camera tracking

Quote:
Originally Posted by Keo-san View Post
We had a similar problem last Saturday. Our camera got the target and looked at it for about 3 seconds.Then it started the search algorithm all over again. We did everything and nothing helped. We borrowed another team's camera and tried again.This was the solution for us.Apparently The camera had some connectors corroded. We work in humid Miami so it might have been that. If you can try to borrow someone's camera or check the camera for physical defects.
we do have an old camera from last year, or the year before we could try
__________________
http://www.khsfirst.com/
  #14   Spotlight this post!  
Unread 12-02-2007, 23:41
general's Avatar
general general is offline
That's me!
AKA: Bryan
FRC #0213 (Dirty Birds)
Team Role: Webmaster
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Keene
Posts: 48
general is an unknown quantity at this point
Send a message via AIM to general
Re: camera tracking

Quote:
Originally Posted by steve d View Post
Make sure the camera isn't mounted upside down in it's camera bracket. We did that and every time it locked on, about a second later, went off and started scanning again,...
its not upside down, it wouldn't fit in the case if it was upside down
__________________
http://www.khsfirst.com/
  #15   Spotlight this post!  
Unread 14-02-2007, 21:30
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: camera tracking

From the picture on your web site, it looks like it is upside down.
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
Camera Tracking Target Jade Programming 3 20-01-2007 01:41
Camera tracking problem Windward Programming 2 15-01-2007 17:59
Camera Tracking Problem cprogrammer Programming 1 18-02-2005 15:00
CMU Camera Tracking auditt241 Programming 0 03-02-2005 16:33
Camera Tracking Woes VideoMan053 Programming 4 29-01-2005 18:09


All times are GMT -5. The time now is 11:00.

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