Basic Line Following Coding
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.
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