Go to Post A lack of knowledge is okay; a lack of initiative to learn more is not. - Madison [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-01-2006, 19:23
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Camera never finds target, stays at "Searching..."

We finally got our robot/camera all set up tonight. I managed to calibrate the camera using LabVIEW, and it tracks consistently through that. However, when I load Kevin's code onto the RC it stays in the "Searching..." mode. I edited all the options in tracking.h, DEBUG goes through all 18 states and then into searching.

Any idea on whats wrong?

Thanks,
Mike

EDIT: I would try the serial port diagnostics program, but our school doesn't give us wireless access, so I can't get it on my programming laptop
__________________
http://www.mikesorrenti.com/

Last edited by Mike : 19-01-2006 at 19:26.
  #2   Spotlight this post!  
Unread 19-01-2006, 19:34
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

We got the same error.

Solution: give up.
  #3   Spotlight this post!  
Unread 19-01-2006, 19:45
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Camera never finds target, stays at "Searching..."

try using camera_s or whatever (the simplified version) we had the same problem but the no bells and wistles version solved our problem
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #4   Spotlight this post!  
Unread 19-01-2006, 19:55
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Camera never finds target, stays at "Searching..."

I had that problem.. the solution was to roll back to the default values that came with the code. From there, once it works, you can slowly start tweaking things one at a time to make it work a little better.

Go try the default code with no changes.
  #5   Spotlight this post!  
Unread 19-01-2006, 20:19
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

I wonder if the camera would work better if they made it track an infrared light source and the put a visible light filter over the lens...

An offseason project, I guess.
  #6   Spotlight this post!  
Unread 19-01-2006, 20:37
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

Thanks for the help...

We are using the simplified version.

Sadly, I have to work tomorrow night (boo!) so I won't be able to go into robotics and try out the rolling back idea. I might get access on Saturday, so I'll post then if/when I have a problem.

Thats probably a good idea in theory Greg, but I couldn't imagine how much IR interference there would be. I wasn't around in ye olden days (04) to program with the IR beacons, but from what I've heard such small things as the auto-focus on a camera (which uses IR to sense the distance) can cause interference.
__________________
http://www.mikesorrenti.com/
  #7   Spotlight this post!  
Unread 19-01-2006, 20:38
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 never finds target, stays at "Searching..."

Quote:
Originally Posted by Mike
We finally got our robot/camera all set up tonight. I managed to calibrate the camera using LabVIEW, and it tracks consistently through that. However, when I load Kevin's code onto the RC it stays in the "Searching..." mode. I edited all the options in tracking.h, DEBUG goes through all 18 states and then into searching.

Any idea on whats wrong?

Thanks,
Mike

EDIT: I would try the serial port diagnostics program, but our school doesn't give us wireless access, so I can't get it on my programming laptop
The solution it to just use the default values included in the code. You should literally be able to load the copy of camera.hex from the zip file and have it work out of the box.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 19-01-2006, 20:44
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 never finds target, stays at "Searching..."

Quote:
Originally Posted by Tom Bottiglieri
We got the same error.

Solution: give up.
Couldn't you be a bit more constructive?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 19-01-2006, 20:48
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

Quote:
Originally Posted by Mike
Thats probably a good idea in theory Greg, but I couldn't imagine how much IR interference there would be. I wasn't around in ye olden days (04) to program with the IR beacons, but from what I've heard such small things as the auto-focus on a camera (which uses IR to sense the distance) can cause interference.
Well, if we're talking FLL, we had to set all the cameras in the room to manual focus when we were using the robot. If we didn't, the robot would do whatever it felt like. So, it is true that a camera's auto focus can cause interference quite easily; I'm just not sure of the extent in FIRST.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #10   Spotlight this post!  
Unread 19-01-2006, 21:12
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

Quote:
Originally Posted by Kevin Watson
The solution it to just use the default values included in the code. You should literally be able to load the copy of camera.hex from the zip file and have it work out of the box.

-Kevin
Ahh, I'll try that first thing when I get bot access. I thought we had to use the LabVIEW program to get the values for the code.

So what's the point of the LabVIEW program?
__________________
http://www.mikesorrenti.com/
  #11   Spotlight this post!  
Unread 19-01-2006, 21:41
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Camera never finds target, stays at "Searching..."

Quote:
Originally Posted by Mike
Ahh, I'll try that first thing when I get bot access. I thought we had to use the LabVIEW program to get the values for the code.

So what's the point of the LabVIEW program?
It lets you fine tune your tracking stuff. I found I needed to enable the noise filter a little, and change some color values.

If you change the config to everything that labview works, stuff stops working.

I think I changed the stuff for Track_Color a little, and increased NF_DEFAULT to 3. Past that, not much I need to do
  #12   Spotlight this post!  
Unread 19-01-2006, 22:43
bombadier337's Avatar
bombadier337 bombadier337 is offline
1337 U53R
AKA: Shaver
None #1541 (MidloCANics)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Richmond VA
Posts: 123
bombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nice
Send a message via AIM to bombadier337
Re: Camera never finds target, stays at "Searching..."

Quote:
Originally Posted by Kevin Watson
The solution it to just use the default values included in the code. You should literally be able to load the copy of camera.hex from the zip file and have it work out of the box.

-Kevin
And that it did Mr. Watson. This year Team 1541 will definately be using the camera!
__________________
Midlothian High School - Team 1541
2005 Radioshack Innovation in Control - NASA/VCU Regional
2005 Rookie Inspiration - NASA/VCU Regional
  #13   Spotlight this post!  
Unread 22-01-2006, 12:47
esquared's Avatar
esquared esquared is offline
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
esquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond repute
Re: Camera never finds target, stays at "Searching..."

Quote:
Originally Posted by Mike
Ahh, I'll try that first thing when I get bot access. I thought we had to use the LabVIEW program to get the values for the code.

So what's the point of the LabVIEW program?
Mike,
Our team used LabVIEW to come up with the correct calibration values just like you did. Similarly, when we went to use the bells and whistles code on the robot (the EduRC actually) it seemed to lose track of what we had told it. The key is that the camera code by default puts the camera BACK into RGB even if you did your calibration values. This isn't a simple switch in camera.h, turns out it's actually a bit in the COMA register (the bit ID escapes me at the moment but it is documented).
Once we figured that out, we had our EduRC bot with the bells and whistles code following our GLOD* with no more issues, based on the 'highly calibrated' Labview values.
-Eric

*GLOD=Green Light Of Doom
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
How To Use the Google Camera generalbrando Kit & Additional Hardware 2 07-02-2006 16:00
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
LabVIEW - CMUcam finds target but cant track bear24rw Programming 6 13-01-2006 21:43
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 20:21.

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