Shop OBEX P1 Docs P2 Docs Learn Events
Basic Line Following Coding — Parallax Forums

Basic Line Following Coding

V360V360 Posts: 10
edited 2008-03-20 05:01 in Learn with BlocklyProp
Hi, i am very fresh in this boebot thing, and i have several questions regarding the codings in line following.

I am using 3 LEDs as the detector in this line following coding.

Firstly, how do i get the program to check on which LED is on or off?

I am planning to use if else statement.

IF (right=0) AND (middle=1) AND (left=0)·THEN
PULSOUT 13, 850
PULSOUT 12, 650
ENDIF
But is it possible for me to change it to something like this:
SELECT qti
CASE %010 ' Forward
PULSOUT 13, 850
PULSOUT 12, 650
ENDSELECT
Thanks in advance.

Comments

Sign In or Register to comment.