Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOW MotorRight
- LOW MotorLeft
- PAUSE 100
- PULSOUT MotorRight, 3000
- PULSOUT MotorLeft, 1000
- PAUSE 1000
- PULSOUT MotorRight, 2500
- PULSOUT MotorLeft, 2500
- PAUSE 1000
- PULSOUT MotorRight, 3000
- PULSOUT MotorLeft, 1000
- PAUSE 1000
- PULSOUT MotorRight, 2500
- PULSOUT MotorLeft, 2500
- PAUSE 1000
- eyeRight VAR Bit
- eyeLeft VAR Bit
- FREQOUT ObsTxRight, 1, 38500
- eyeRight = ObsRx
- FREQOUT ObsTxLeft, 1, 38500
- eyeLeft = ObsRx
- IF (eyeRight = 0 OR eyeLeft = 0) THEN
- PULSOUT MotorRight, 1000
- PULSOUT MotorLeft, 1000
- PAUSE 1000
- ELSE
- PULSOUT MotorRight, 1500
- PULSOUT MotorLeft, 1500
- PAUSE 2000
- ENDIF
- counter VAR Nib
- DO WHILE (counter < 3)
- PULSOUT MotorRight, 3000
- PULSOUT MotorLeft, 1000
- PAUSE 1000
- PULSOUT MotorRight, 1000
- PULSOUT MotorLeft, 3000
- PAUSE 1000
- counter = counter + 1
- LOOP
Add Comment
Please, Sign In to add comment