Go to Post Most members of the CD community are happy to help one another. But searching before you post is standard forum etiquette... - KathieK [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 19-02-2006, 20:58
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Urgent help needed : Camera locks on to no apparent target! ?!?!

I'm thinking this is some wierd serial port bug or something... but basically the "red" locked light is going on the camera stops searching even when nowhere near the target, even with my hand over the lens...

this doesn't happen all the time but intermittently
__________________
Team 701
  #2   Spotlight this post!  
Unread 19-02-2006, 21:31
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Salik Syed
I'm thinking this is some wierd serial port bug or something... but basically the "red" locked light is going on the camera stops searching even when nowhere near the target, even with my hand over the lens...

this doesn't happen all the time but intermittently

I have the same problem. Let me know if you find the solution. This mostly happens if for some reason the Robot Controller does not start the camera functions or initializes it.
__________________
My Blog!
  #3   Spotlight this post!  
Unread 19-02-2006, 21:50
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

By any chance are you two using custom code (not Kevin's code)?

If so, I discussed something similar here:
http://www.chiefdelphi.com/forums/sh...threadid=44281
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #4   Spotlight this post!  
Unread 19-02-2006, 21:53
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

no it's all kevins
__________________
Team 701
  #5   Spotlight this post!  
Unread 19-02-2006, 21:57
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: Urgent help needed : Camera locks on to no apparent target! ?!?!

This has been discussed elsewhere. You can search and find stuff on it. But in tracking.c it checks if there is a light or not to scan because for some weird reason it gets x and y values even when the light is not in front of it. To correct that change the line if(T_Packet_Data.my != 0) to if(P_Packet_Data.confidence != 0).
__________________
-= 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
  #6   Spotlight this post!  
Unread 19-02-2006, 23:40
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Bharat Nain
This has been discussed elsewhere. You can search and find stuff on it. But in tracking.c it checks if there is a light or not to scan because for some weird reason it gets x and y values even when the light is not in front of it. To correct that change the line if(T_Packet_Data.my != 0) to if(P_Packet_Data.confidence != 0).
The condition you are talking about happens if the camera is picking up other lights. And the condition should by "if (P_Packet_Data.confidence > 80)".

Since the first post said the problem persists if a hand is in front of the camera then I do not believe that is the problem they are having. When I leave my hand in front of the camera for 3-5 seconds the search routing starts up again.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
  #7   Spotlight this post!  
Unread 20-02-2006, 07:18
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Eldarion
By any chance are you two using custom code (not Kevin's code)?

If so, I discussed something similar here:
http://www.chiefdelphi.com/forums/sh...threadid=44281

I am using Kevin's frc_camera_s, as in the no bells and whistles. This sometimes happens even using the default hex file from Kevin.
__________________
My Blog!
  #8   Spotlight this post!  
Unread 20-02-2006, 12:53
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: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Salik Syed
I'm thinking this is some wierd serial port bug or something... but basically the "red" locked light is going on the camera stops searching even when nowhere near the target, even with my hand over the lens...

this doesn't happen all the time but intermittently
Can you post your user_routines_fast.c/InterruptHandlerLow( ) function?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 20-02-2006, 17:15
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

We are having the same problem, except we dont have it on autonomous mode. We just try getting the camera to track during normal run and the camera has the red light on. Without it moving at all. Im gonna try that change in the code and see how it works.

EDIT: Okay I changed it and this is what I get when I try to compile it.

C:\frc_camera2\frc_camera\tracking.c:97:Error [1105] symbol 'P_Packet_Data' has not been defined
C:\frc_camera2\frc_camera\tracking.c:97:Error [1151] struct or union object designator expected
__________________
TEAM 1706
2007 Judges Award, St. Louis (For our amazing ability to have bad luck)
2005 Rookie Inspiration Award, St. Louis

Last edited by Idaman323 : 20-02-2006 at 17:21.
  #10   Spotlight this post!  
Unread 20-02-2006, 18:58
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: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Idaman323
We are having the same problem, except we dont have it on autonomous mode. We just try getting the camera to track during normal run and the camera has the red light on. Without it moving at all. Im gonna try that change in the code and see how it works.

EDIT: Okay I changed it and this is what I get when I try to compile it.

C:\frc_camera2\frc_camera\tracking.c:97:Error [1105] symbol 'P_Packet_Data' has not been defined
C:\frc_camera2\frc_camera\tracking.c:97:Error [1151] struct or union object designator expected
That should be "T_Packet_Data", not "P_Packet_Data".

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 20-02-2006, 23:52
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

I'll see if i can post the code tomorrow,
__________________
Team 701
  #12   Spotlight this post!  
Unread 06-03-2006, 17:24
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!

Quote:
Originally Posted by Salik Syed
I'm thinking this is some weird serial port bug or something... but basically the "red" locked light is going on the camera stops searching even when nowhere near the target, even with my hand over the lens...

this doesn't happen all the time but intermittently
This has happened to us a lot as well. I find that these have often been the problems (in order of most to least common):
1. Low Backup Battery (happens every hour or so!)
3. Fluorescent lighting (very tricky due to the moving particles in the rods)
4. A reflection
5. Low main battery
6. The robot was reset with the button or was too fast
7. Loose wire or a wire plugged in backwards (this was caused a tragedy on ship day when we were practicing driving)
8. Confidence value too low
9. Programming error (luckily we haven't had this yet)
10. A random error that seems to fix itself after some tinkering and resetting (least common because that would be too easy, but it happens)

If you have gone through this list and changed the line in your code that the other posters are suggesting, and it still tracks ghosts, then it is over my head!
__________________
Longwood's Digital Impact

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
CMU Camera kills robot controller if not found. Chris_Elston Programming 21 27-03-2006 14:30
Camera shows no love to drive motors anifinder Programming 4 13-02-2006 10:31
Camera pointing error? Craig Putnam Programming 14 21-01-2006 02:52
For anyone who doesn't get the camera code..... Jake M Programming 8 16-01-2006 18:56
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 22:05.

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