|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||||
|
||||||
|
2.5 will make it much easier, but you can do it in 2.0 if you want. Here would be the 2.5 code:
Code:
counter VAR word
counter=0
mainloop:
serin...
if auton_mode then
counter=counter+1
SELECT counter
CASE 0 to 100
'go forward
CASE 101 to 200
'pause
CASE 201 to 300
'turn
CASE else
'pause
ENDSELECT
ELSE
'regular robot code
ENDIF
serout
goto mainloop
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PBASIC Syntax Question | Raven_Writer | Programming | 4 | 20-08-2003 08:07 |
| Question Obtaining Pbasic 2.5 | PyroPhin | Programming | 3 | 18-01-2003 01:26 |
| PBasic Question | Melissa H. | Programming | 28 | 17-11-2002 18:53 |
| pbasic question | archiver | 2001 | 5 | 23-06-2002 23:50 |
| Another PBASIC Question | Ian W. | Programming | 4 | 31-01-2002 21:36 |