Go to Post Sometimes I think all the Game Hint does to us is make us terrible listeners. - Chris is me [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 03-04-2007, 12:47
WillisRF's Avatar
WillisRF WillisRF is offline
Registered User
FRC #1539 (Team Clover)
Team Role: College Student
 
Join Date: Apr 2007
Rookie Year: 2005
Location: South Carolina
Posts: 21
WillisRF will become famous soon enoughWillisRF will become famous soon enough
Camera Stuck

The camera we are using on our robot goes straight to the upper corner of its range of motion and just stays there instead of searching.
Using dashboard we discovered that it kept going to Pan: 30 Tilt: 254.
These values happen to be the min and max of those servos respectively.

Has anyone else had this problem or know how to fix it?

However when we put the light right in front of it, it does then track. The camera just doesn't run its search pattern.
  #2   Spotlight this post!  
Unread 03-04-2007, 13:39
Noah Kleinberg Noah Kleinberg is offline
Registered User
FRC #0395 (2TrainRobotics)
Team Role: Driver
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 196
Noah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to behold
Send a message via AIM to Noah Kleinberg
Re: Camera Stuck

Are you using the default camera code from Kevin Watson's website? If not, you should try it with that so that you can tell if it's a problem with your software specifically. You should also try using the Labview CMUcam application (I don't have a link, but search for it on Chief Delphi) to see if the camera is locking on to something else, and to make sure that it is using the right tracking parameters, as well as to make sure that it's not a hardware problem.
  #3   Spotlight this post!  
Unread 03-04-2007, 14:00
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,113
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 Stuck

If you're using the "Bells and Whistles" code, try reloading the default tracking values. The pan step size might have gotten set to something out of range.
  #4   Spotlight this post!  
Unread 03-04-2007, 16:01
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Camera Stuck

Did you center the servos before you mounted them?
  #5   Spotlight this post!  
Unread 03-04-2007, 16:28
WillisRF's Avatar
WillisRF WillisRF is offline
Registered User
FRC #1539 (Team Clover)
Team Role: College Student
 
Join Date: Apr 2007
Rookie Year: 2005
Location: South Carolina
Posts: 21
WillisRF will become famous soon enoughWillisRF will become famous soon enough
Re: Camera Stuck

We are using the "bells and whistles" version of Kevin's code and have reloaded the the default settings and were able to then track the light. However the camera still does not run its search pattern.

We used LabView to focus the camera and make sure that it was seeing the light.

Also, on the practice field in our shop the autonomous code tracked the light and was able to run the code and score on the spider leg.

The servos were centered and they have not a been a problem.

Is it likely that the camera was damaged during ship?
__________________
2007 Peachtree Regional Winner Thanks to 1127, 1369, and 1848.

2006 & 2007

Last edited by WillisRF : 03-04-2007 at 22:33.
  #6   Spotlight this post!  
Unread 05-04-2007, 10:10
Jon Anderson's Avatar
Jon Anderson Jon Anderson is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Oct 2003
Rookie Year: 2004
Location: Indiana
Posts: 84
Jon Anderson is a glorious beacon of lightJon Anderson is a glorious beacon of lightJon Anderson is a glorious beacon of lightJon Anderson is a glorious beacon of lightJon Anderson is a glorious beacon of light
Send a message via AIM to Jon Anderson
Re: Camera Stuck

We were having that problem a lot last year and still occasionally have it occur from time to time. What we try first is just doing a reset and if that doesn't work, it usually does for us, we unplug the ttl thing, hit reset, and then plug it back in.
  #7   Spotlight this post!  
Unread 05-04-2007, 11:55
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Camera Stuck

Have you tried replacing the servos? Or putting a bunch of printf's in tracking.c to try to debug the problem?
  #8   Spotlight this post!  
Unread 05-04-2007, 12:35
Rez17's Avatar
Rez17 Rez17 is offline
Jeffrey L. Yewcic
AKA: Rez
FRC #1539 (Team Clover)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Clover, SC
Posts: 2
Rez17 is an unknown quantity at this point
Send a message via AIM to Rez17
Re: Camera Stuck

We have tried putting in a bunch of printf's but they seemed no use when we looked over them. The printf's gave us back the correct tracking state, but we still had the problem. Our servos are fine, we tried new ones and we had the same problem. The camera tracks fine when we put our light box in front of it and will follow the light. Any help?
__________________
~Jeffrey Y.
  #9   Spotlight this post!  
Unread 05-04-2007, 12:53
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Camera Stuck

are you using default tracking.h defines?
  #10   Spotlight this post!  
Unread 05-04-2007, 13:02
Rez17's Avatar
Rez17 Rez17 is offline
Jeffrey L. Yewcic
AKA: Rez
FRC #1539 (Team Clover)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Clover, SC
Posts: 2
Rez17 is an unknown quantity at this point
Send a message via AIM to Rez17
Re: Camera Stuck

Yea, were using the defaults, except for the Pan Max, Pan Min, Tilt Min settings.
__________________
~Jeffrey Y.
  #11   Spotlight this post!  
Unread 05-04-2007, 13:26
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Camera Stuck

This sounds an awful lot like what I saw last year. I've barely looked at the camera code this year, but last year I found that .mY (which Kevin's code was using to determine if the light was in sight) was being returned non-zero even though .confidence was near zero. I modified the code to use confidence rather than mY. Please see this post and the thread containing this post.

N.b. Kevin fixed his code, so if you're using Kevin's latest code you have a different problem or your Confidence_Threshold is set too low.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #12   Spotlight this post!  
Unread 05-04-2007, 17:17
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,113
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 Stuck

Quote:
Originally Posted by Rez17 View Post
Yea, were using the defaults, except for the Pan Max, Pan Min, Tilt Min settings.
What are your custom settings? If the min and max are too close together (or if they're swapped), the tracking code isn't going to be able to move the servos.
  #13   Spotlight this post!  
Unread 05-04-2007, 17:21
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,113
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 Stuck

Quote:
Originally Posted by WillisRF View Post
We are using the "bells and whistles" version of Kevin's code and have reloaded the the default settings and were able to then track the light. However the camera still does not run its search pattern.
I'm confused. After you reloaded the defaults, did it work, or didn't it? Note that you need to worry about the tracking values, not the camera values.

Are you perhaps trying to get help with a customized search pattern that isn't working the way you want it to?
  #14   Spotlight this post!  
Unread 05-04-2007, 18:11
WillisRF's Avatar
WillisRF WillisRF is offline
Registered User
FRC #1539 (Team Clover)
Team Role: College Student
 
Join Date: Apr 2007
Rookie Year: 2005
Location: South Carolina
Posts: 21
WillisRF will become famous soon enoughWillisRF will become famous soon enough
Re: Camera Stuck

Is there a separate reset in the tracking menu? If so, I'm not sure if we reset the tracking values.

We reset the camera settings which allowed the camera to follow the light if and only if it was already in vision. The camera did not run its search pattern.

Also, the min and max pan values are 30 and 220, respectively. The tilt min and max are 150 and 254. We will check and make sure that they are not backwards.

Also, we are using Kevin's 2007 code.

What confidence threshold would be suitable? I think that the default value is 40.

Any other ideas?
__________________
2007 Peachtree Regional Winner Thanks to 1127, 1369, and 1848.

2006 & 2007
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
RC Controller Stuck bhk88 Programming 1 31-01-2006 17:46
Stuck on Camera Mount busterblade16 Programming 2 14-02-2005 22:07
stuck in programming mode Shu Song Control System 2 29-04-2004 16:44
help! Am really stuck!!!! pagemauck Programming 8 29-01-2004 12:38
guy stuck in toilet! robot180 Chit-Chat 8 14-11-2003 22:27


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

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