Go to Post Let this be a hint to the hardware teams. Deliver that robot early and give the software and driving team time with the robot. IR3 has proven it can be done. - Doug Leppard [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 18-03-2006, 15:11
354.FIRST 354.FIRST is offline
Registered User
FRC #0354
 
Join Date: Jan 2006
Location: Brooklyn, NY
Posts: 26
354.FIRST is an unknown quantity at this point
Using T_Packet_Data.mx versus confidence

FIRST

I have read all the related posts and I still have some confusion.
We have been using
if (T_Packet_Data.mx != 0 )
to determine if the camera sees the target light and it was working perfectly.
everyone says to use
if (T_Packet_Data.confidence > ##)
which was not working... but may be we have not found the right confidence.
I don't understand why T_Packet_Data.mx != 0 worked so well and what I should be worried about if I keep using that.
May be should I use something like...
if (T_Packet_Data.mx != 0 && T_Packet_Data.confidence > 80)
?????

SECOND
Our camera is not working at all since we shipped this years 'bot and mounted on the 2005 system. We recompiled for the 8520 board without problems using Using_Last_Years_FRC.txt.

The camera has both the red and green lights on like it's got the target even if we cover the lense. I read all the posts and so far no luck...
We connected to Labview and the camera lense is grabbing frames without problems. We connected the camera pwms to a joystick and the pwms work.

Any more thoughts on this?

HELP!

-354
  #2   Spotlight this post!  
Unread 18-03-2006, 16:24
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: Using T_Packet_Data.mx versus confidence

The .mx and .my values can/will be non-zero when there is no green light in view. We verified this in our shop. The .confidence value appears to find green light correctly most of the time. We found it did not work well in the pit area at our Regional. Neither method is foolproof. The new default camera code uses a confidence threshold of 20.

Check the state of your camera using the terminal output. We constantly encountered problems where the camera software would not initialize and was unusable in every match. The best we could determine was it would fail if the reset button was pressed in autonomous mode. It always worked fine during testing in user mode.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
  #3   Spotlight this post!  
Unread 18-03-2006, 16:24
354.FIRST 354.FIRST is offline
Registered User
FRC #0354
 
Join Date: Jan 2006
Location: Brooklyn, NY
Posts: 26
354.FIRST is an unknown quantity at this point
Re: Using T_Packet_Data.mx versus confidence

We figured out the SECOND part of the post.
Our noise filter was zero and it should be one.
I have no idea when that was changed.

Any comments on the FIRST part of the post?
I'm nervous keeping the code how we have it, but it works so well...

-354
  #4   Spotlight this post!  
Unread 18-03-2006, 18:52
354.FIRST 354.FIRST is offline
Registered User
FRC #0354
 
Join Date: Jan 2006
Location: Brooklyn, NY
Posts: 26
354.FIRST is an unknown quantity at this point
Re: Using T_Packet_Data.mx versus confidence

OK. No we didn't figure out the SECOND part of the post.
Our camera is stuck.
We are now thinking that it is the TTL that is broken on the 2005 controller.
We are connecting to the 2004 controller.
We'll see.
Any help would be appreciated. Red and Green lights stay on on the camera and it is frozen...
No searching... .coming into COM1 (no surprise there)
-354
  #5   Spotlight this post!  
Unread 18-03-2006, 18:59
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: Using T_Packet_Data.mx versus confidence

Quote:
Originally Posted by 354.FIRST
OK. No we didn't figure out the SECOND part of the post.
Our camera is stuck.
We are now thinking that it is the TTL that is broken on the 2005 controller.
We are connecting to the 2004 controller.
We'll see.
Any help would be appreciated. Red and Green lights stay on on the camera and it is frozen...
No searching... .coming into COM1 (no surprise there)
-354
Try holding the RC Reset button for at least FOUR seconds. When our camera freezes like that, this is the remedy that works.
  #6   Spotlight this post!  
Unread 18-03-2006, 22:52
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: Using T_Packet_Data.mx versus confidence

We encoutered the same problem as your second part. All the lights were on and the camera wasn't tracking at all. It turns out our camera was damaged during shipping or something because we replaced the lense part of the camera and it was up and running perfectly again. Just a suggestion, hope it helps. The camera has been a nightmare for me, I'm the rookie programmer and leader of our programming, lol!

EDIT: And yes, if the camera stops working, I usually have to HOLD the reset button, not simply press it. Don't know why it does that, but it solves all problems!
__________________
www.sabrerobotics.com
  #7   Spotlight this post!  
Unread 19-03-2006, 10:43
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: Using T_Packet_Data.mx versus confidence

My teams camera was broken when it came falling down from 60 inches. We had to replace it with a 2005 lens, and it worked perfectly again. The lens really is too sensitive.
__________________
My Blog!
  #8   Spotlight this post!  
Unread 20-03-2006, 17:51
354.FIRST 354.FIRST is offline
Registered User
FRC #0354
 
Join Date: Jan 2006
Location: Brooklyn, NY
Posts: 26
354.FIRST is an unknown quantity at this point
Re: Using T_Packet_Data.mx versus confidence

Turns out our TTL connector on the processor was broken.
We used the 2004 robot which is the same as the 2005 and it works.
-354
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
Bernoullis versus Continuity Corey Balint Math and Science 13 15-09-2007 17:59
Camera Confidence in the Portland Regional Pit Area Keith Watson Programming 1 03-03-2006 12:46
[Official 2005 Game Design] Radical Tournament Ideas dlavery FRC Game Design 42 26-04-2005 19:19
One-Regional versus Multi-Regional teams Natchez Regional Competitions 25 20-04-2004 20:40
2-wheel versus 4-wheel drive Ben Mitchell Technical Discussion 23 07-11-2003 00:50


All times are GMT -5. The time now is 23:03.

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