Go to Post Its a good bug too. :) - spadercool [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 11-01-2006, 21:42
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
RGB colors in camera.h

Hey,

I am wondering, in camera.h it has the following set:

Code:
#define R_MIN_DEFAULT	85	// Rmin for call to Track_Color()

#define R_MAX_DEFAULT	115	// Rmax for call to Track_Color()

#define G_MIN_DEFAULT	15	// Gmin for call to Track_Color()

#define G_MAX_DEFAULT	17	// Gmax for call to Track_Color()

#define B_MIN_DEFAULT	100 // Bmin for call to Track_Color()

#define B_MAX_DEFAULT	145 // Bmax for call to Track_Color()
Are the lower values what we are looking for? Or are we looking for stuff that is not green?

As far as I remember from RGB, 0,255,0 is looking for green, while 255,0,255 is looking for a mix of red and blue, which would be magenta.

I am using the slimlined, sleek version of Kevin Watson's code, just to simplify things for now.
__________________
My Blog!
  #2   Spotlight this post!  
Unread 11-01-2006, 21:48
Mr.Fahrenheit's Avatar
Mr.Fahrenheit Mr.Fahrenheit is offline
The "Other" Guy
AKA: Mike
FRC #0033 (Killer Bees)
Team Role: Student
 
Join Date: Oct 2005
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 17
Mr.Fahrenheit is an unknown quantity at this point
Send a message via AIM to Mr.Fahrenheit
Re: RGB colors in camera.h

You need to find out your own values for the light because it is not pure green so 0,255,0 will not find or track the color. Use the GUI to find the mean of the colors where the light is when seen.
__________________
Mike Kaurich
  #3   Spotlight this post!  
Unread 11-01-2006, 21:50
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: RGB colors in camera.h

Quote:
Originally Posted by Mr.Fahrenheit
You need to find out your own values for the light because it is not pure green so 0,255,0 will not find or track the color. Use the GUI to find the mean of the colors where the light is when seen.

Cheers. Will play around with it then .
__________________
My Blog!
  #4   Spotlight this post!  
Unread 11-01-2006, 21:53
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: RGB colors in camera.h

Replying to my own post, Kevin Watson posted this:

Quote:
You should be able to use the default color values in camera.h with the green target.
in http://www.chiefdelphi.com/forums/sh...12&postcount=4

So i should be good to go out of the box .
__________________
My Blog!
  #5   Spotlight this post!  
Unread 11-01-2006, 21:56
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: RGB colors in camera.h

Quote:
Originally Posted by X-Istence
Replying to my own post, Kevin Watson posted this:



in http://www.chiefdelphi.com/forums/sh...12&postcount=4

So i should be good to go out of the box .
With regards to my experience with the code, the camera tracks out of the box, the only thing that you need to worry about is hooking up the servos to the correct pwms, and if you're not using pwm01 and pwm02, then remember to change the definitions in tracking.h.

Good luck,
__________________
  #6   Spotlight this post!  
Unread 11-01-2006, 21:59
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: RGB colors in camera.h

Quote:
Originally Posted by dhoizner
With regards to my experience with the code, the camera tracks out of the box, the only thing that you need to worry about is hooking up the servos to the correct pwms, and if you're not using pwm01 and pwm02, then remember to change the definitions in tracking.h.

Good luck,

I figured that part out .

Thank you.
__________________
My Blog!
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
TEAM COLORS AND SHIRT ( 2006) Freddy Schurr General Forum 28 04-10-2005 20:56
Team Colors in Everyday Places Freddy Schurr Chit-Chat 8 30-05-2005 22:41
What colors are used on the field auditt241 Programming 6 03-02-2005 18:41
Help w/ team website colors, plz! RbtGal1351 Website Design/Showcase 6 18-12-2004 02:53
Team Mascots, Nickname & Colors? DanLevin247 General Forum 84 22-07-2003 00:14


All times are GMT -5. The time now is 09:02.

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