Go to Post Where's the "drill enough weight holes so we're barely under 120lbs" option? ;-) - AlecMataloni [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 25-01-2007, 09:09
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Different "Cam Suddenly Stops" Problem

We have been working on autonomous with the camera for about a week and a half (mounted it on last year's robot). It was tracking the green light just fine up until yesterday. It still searches, but never reports that it has found the light or goes from searching to trackign mode. We only changed one of our speed variables for driving from one test to the next, and the cam quit. So we went back to default cam code and it still doesn't work.

All 4 PWMs for the camera are plugged in correctly, the backup battery has been checked, and the terminal reports angles and everything correctly, the camera just never sees the light. It's as if the cap is on (but it's not ).

I even used the Java program to make sure the camera is focused appropriately! Does anyone know what it could be?
__________________
What place are we at? ... TODAI!
  #2   Spotlight this post!  
Unread 25-01-2007, 10:27
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: Different "Cam Suddenly Stops" Problem

Quote:
Originally Posted by JohnC View Post
We have been working on autonomous with the camera for about a week and a half (mounted it on last year's robot). It was tracking the green light just fine up until yesterday. It still searches, but never reports that it has found the light or goes from searching to trackign mode. We only changed one of our speed variables for driving from one test to the next, and the cam quit. So we went back to default cam code and it still doesn't work.

All 4 PWMs for the camera are plugged in correctly, the backup battery has been checked, and the terminal reports angles and everything correctly, the camera just never sees the light. It's as if the cap is on (but it's not ).

I even used the Java program to make sure the camera is focused appropriately! Does anyone know what it could be?
Have a look at the confidence threshold parameter. If set too high, the tracking software will continue to search even though the camera sends a t-packet indicating it has seen a an object of the proper color. This can be used to discriminate against false positives. Try lowering this value (the default is 20) and see if your problem goes away. So that I can get a sense of what's happening out there, please let me know the outcome.

Edit: I suspect that it stopped working suddenly because you changed something, like moving the lights further apart, and fell below this threshold.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 25-01-2007 at 10:32.
  #3   Spotlight this post!  
Unread 25-01-2007, 11:35
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: Different "Cam Suddenly Stops" Problem

How are you powering the target light? If it's from a robot battery, it might just be running low on voltage and getting too dim for the code to detect properly. You won't necessarily notice the very gradual dimming. If this is your problem, you'll definitely notice it being brighter when you replace the battery, and the camera should be happy.
  #4   Spotlight this post!  
Unread 25-01-2007, 20:19
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Different "Cam Suddenly Stops" Problem

Quote:
Originally Posted by Kevin Watson View Post
Edit: I suspect that it stopped working suddenly because you changed something, like moving the lights further apart, and fell below this threshold.

-Kevin
We'll definitely try changing the confidence threshold, thanks. We thought of the distance of the light though, and tried it at several distances between 3 and 25 feet from the camera.

Quote:
Originally Posted by Alan Anderson View Post
How are you powering the target light? If it's from a robot battery, it might just be running low on voltage and getting too dim for the code to detect properly. You won't necessarily notice the very gradual dimming. If this is your problem, you'll definitely notice it being brighter when you replace the battery, and the camera should be happy.
This will be tried also. Thanks! We're having final exams now so I will reply again in about a week with results.
__________________
What place are we at? ... TODAI!
  #5   Spotlight this post!  
Unread 26-01-2007, 22:34
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Different "Cam Suddenly Stops" Problem

Thanks! We were using a 12v robot battery, and it was low. The voltage was at 11.8 or so volts. Switching it out for a 13.3 volt one solved the problem. Doesn't seem like a big disparity but it apparently was.

And although it wasn't the main problem, changing the confidence threshold from 20 to 18 did make tracking a little smoother.
__________________
What place are we at? ... TODAI!
  #6   Spotlight this post!  
Unread 28-01-2007, 14:00
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: Different "Cam Suddenly Stops" Problem

We have encountered the same problem(It was working fine for a while). Battery for the lights are good, we changed it several times to be sure. Backup and main battery also were definitely very charged. We checked all the connections to make sure they were in. When we bring the green light in front of the camera, the red light on the camera stays red as it usually would in the presence of the green light. However, in the software, it still says "Searching...". We are using the default code and we did try lowering the confidence treshold to 10 and 15. No difference in results.
__________________
-= 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
  #7   Spotlight this post!  
Unread 28-01-2007, 14:04
Mib Mib is offline
Registered User
AKA: Aaron Clay
FRC #1741 (Red Alert Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Indiana
Posts: 12
Mib is on a distinguished road
Send a message via AIM to Mib Send a message via MSN to Mib Send a message via Yahoo to Mib
Re: Different "Cam Suddenly Stops" Problem

Quote:
Originally Posted by Kevin Watson View Post
Have a look at the confidence threshold parameter. If set too high, the tracking software will continue to search even though the camera sends a t-packet indicating it has seen a an object of the proper color. This can be used to discriminate against false positives. Try lowering this value (the default is 20) and see if your problem goes away. So that I can get a sense of what's happening out there, please let me know the outcome.

Edit: I suspect that it stopped working suddenly because you changed something, like moving the lights further apart, and fell below this threshold.

-Kevin

you might try restoring the defualts for the camera
__________________
Aaron M. Clay
Programming Consultent
www.GameCopyWorld.com
amclay (@) purdue.edu
  #8   Spotlight this post!  
Unread 28-01-2007, 14:41
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Different "Cam Suddenly Stops" Problem

Quote:
Originally Posted by Mib View Post
you might try restoring the defualts for the camera
Did you read the thread? Both Bharat Nain and I said we were using the default code.
__________________
What place are we at? ... TODAI!
  #9   Spotlight this post!  
Unread 30-01-2007, 19:31
seanwittmeyer seanwittmeyer is offline
Registered User
FRC #0159
 
Join Date: May 2006
Location: Alpine Robotics, Fort Collins, CO
Posts: 2
seanwittmeyer is an unknown quantity at this point
Re: Different "Cam Suddenly Stops" Problem

We have been getting the same problem with the camera where the red and green lights are constantly on. We have checked the power to the camera and we have plenty of power going to the camera. This occured with the default code (the easyC kickoff code and "out of the box" default code) on both this year's camera and last year's camera. We have also changed the robot controller between this years and last years and the problem still exists. While in this state the camera does absolutely nothing.
  #10   Spotlight this post!  
Unread 30-01-2007, 20:34
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Unhappy Re: Different "Cam Suddenly Stops" Problem

We are encountering the same problem. Both the red light and the green light will be on, yet it is as if the camera just stops paying attention to the light. Kevin's code worked flawlessly last year, I don't know what could be causing this. I doubt it is a glitch in the camera state machine because IIRC the lights on the CMUCam are controlled by itself, not the FRC? The camera will follow the light around, and then just stop. If you bring the light back, it will pick it up again, but it is like the camera has seen something green behind your light and stays looking at it instead of following the powered green light.

Does anyone know what the issue is? I am positive everything is plugged in and configured correctly, because most of the time it tracks alright.

Please, please, provide feedback, and thanks in advance,
Robinson Levin

EDIT: Could a confidence threshold set too high (or even the default) cause the this behavior? I thought that was internal to Kevin's tracking code, and wouldn't keep the red light on, but still...

Last edited by gnirts : 30-01-2007 at 20:36.
  #11   Spotlight this post!  
Unread 30-01-2007, 21:37
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Different "Cam Suddenly Stops" Problem

The red light would indicate that the camera recognizes the light specified by the TC command. A confidence threshold would keep the camera searching instead of transitioning to the tracking state.
__________________
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
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
IFI Loader problem - "Invalid HEX file" wun Programming 9 22-09-2004 12:35
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53
Looking from a different point at "Fixing" punarhero General Forum 27 18-03-2003 18:41
Potential Problem with "fighting over the goal" Kyle Fenton General Forum 4 17-02-2002 10:21


All times are GMT -5. The time now is 10:43.

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