REMARK COSC 4P78 LAB #2
REMARK CAMERON WELLOCK, ID 1824952
REMARK PROGRAM FOR ROBOT #1
REMARK CHECK P1 FOR A BLOCK
APPROS P1,75
OPENI
APPROS P1,5
GRASP 15,1
GOTO 3
1 REMARK CHECK P2 FOR A BLOCK
APPROS P2,75
OPENI
APPROS P2,5
GRASP 15,2
GOTO 3
2 REMARK NO BLOCK FOUND
SIGNAL 2
DELAY 2
SIGNAL -2
APPROS P0,15
CLOSEI
MOVE P0
STOP
3 REMARK A BLOCK FOUND
APPROS P3, 50
REMARK NOW WHAT...?
MOVE P3
SIGNAL 2
DELAY 2
SIGNAL -2
WAIT 3
OPENI
APPROS P0,15
CLOSEI
MOVE P0
STOP