Code hue and saturation values for color channels?

4 replies [Last post]
IRRL
Title: NooBot
Joined: 03/22/2012
Posts:
BotPoints: 15
User offline. Last seen 9 years 9 weeks ago.

Hi all,

We are programming Botballs for an experiment that involves color recognition. The Botballs we are using come with CBC v2. While we know how to set the color channels (0-3) manually through the CBC v2 user interface, we are wondering if there is away to set specific hue and saturation values for each color channel in our code. For example, can we code the robot to set its Color Channel 0 to be a red color that has hue from 0 to 20 and saturation from 160 to 180?

We really appreciate your help!

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

Hi IRRL,

There is currently no way to programmatically set color channels on the CBCv2. There are ways to do this on the KIPR Link, but that obviously doesn't help you in this case. Sorry :/

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

Hi IRRL, welcome to the Botball Community!

If you're willing to risk installing a hacked firmware, the NHS Patchset firmware does have functions to change color models from your C program. However, there is no warranty for unofficial firmwares, so this is at your own risk.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

IRRL
Title: NooBot
Joined: 03/22/2012
Posts:
BotPoints: 15
User offline. Last seen 9 years 9 weeks ago.

Thanks for the response! We will need to work our way around it then...

IRRL
Title: NooBot
Joined: 03/22/2012
Posts:
BotPoints: 15
User offline. Last seen 9 years 9 weeks ago.

Thanks Jeremy! We are actually thinking about trying out the NHS Patchset firmware. Is the latest patchset 2.1.4-nhs-2?