Line Follower App Kit code error
Hello,
I am new to robotics and just purchased the QTI line Follower AppKit for the Boe-Bot (#28108) the source code that came with it generates the following error message:
·Error 129 - Expected ':" or End-of-Line. This message occurs when the program gets to the "qti" text immediatly after the SELECT text. I have included the program below and colored the text red where the problem seems to occur. Can you help???
Thanks
Mr Dan
Las Vegas, Nevada
'QtilineFollw.bs2
'Boe-Bot follows electrical tape with 3 QTI modules
'{$STAMP BS2}
'{PBASIC 2.5}
qti VAR Nib
Do
Right: HIGH 5: Pause 1: qti.BIT0 = IN3: INPUT 5
Center: HIGH 6: Pause 1: qti.BIT1 = IN3: INPUT 6
Left: HIGH 7: Pause 1: qti.BIT2 = IN3: INPUT 7
SELECT qti
CASE %010 'Forward
PULSOUT 13, 850
PULSOUT 12, 650
CASE %011 'Pivot right
PULSOUT 13, 850
PULSOUT 12, 750
CASE %001 'Rotate right
PULSOUT 13, 850
PULSOUT 12, 850
CASE %110 'Pivot Left
PULSOUT 13, 750
PULSOUT 12, 650
CASE %100 'Rotate Left
PULSOUT 13, 650
PULSOUT 12, 650
ENDSELECT
PAUSE 20
Loop
I am new to robotics and just purchased the QTI line Follower AppKit for the Boe-Bot (#28108) the source code that came with it generates the following error message:
·Error 129 - Expected ':" or End-of-Line. This message occurs when the program gets to the "qti" text immediatly after the SELECT text. I have included the program below and colored the text red where the problem seems to occur. Can you help???
Thanks
Mr Dan
Las Vegas, Nevada
'QtilineFollw.bs2
'Boe-Bot follows electrical tape with 3 QTI modules
'{$STAMP BS2}
'{PBASIC 2.5}
qti VAR Nib
Do
Right: HIGH 5: Pause 1: qti.BIT0 = IN3: INPUT 5
Center: HIGH 6: Pause 1: qti.BIT1 = IN3: INPUT 6
Left: HIGH 7: Pause 1: qti.BIT2 = IN3: INPUT 7
SELECT qti
CASE %010 'Forward
PULSOUT 13, 850
PULSOUT 12, 650
CASE %011 'Pivot right
PULSOUT 13, 850
PULSOUT 12, 750
CASE %001 'Rotate right
PULSOUT 13, 850
PULSOUT 12, 850
CASE %110 'Pivot Left
PULSOUT 13, 750
PULSOUT 12, 650
CASE %100 'Rotate Left
PULSOUT 13, 650
PULSOUT 12, 650
ENDSELECT
PAUSE 20
Loop
bs2
703B
Comments
it appears that the
should be
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm new to the propeller!