Shop OBEX P1 Docs P2 Docs Learn Events
how can i define a red color? — Parallax Forums

how can i define a red color?

aemmaethaemmaeth Posts: 2
edited 2006-07-08 19:07 in Robotics
hi guys, i am working on a robot which is supposed to move and when sees a red bricket stops and turns to another way. i am using CMUcam. my questin is: how can i teach the robot to avoid red colors. i mean for example:

IF b>x THEN

FOR a=1 TO 30
PULSOUT 14, 1000
PULSOUT 15, 500
PAUSE 100
NEXT

ENDIF

where x is a minimum value of red color or something. basicly what is the number x?

Comments

Sign In or Register to comment.