Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. task main()
  2. {
  3.  
  4. SetSensor(IN_3,SENSOR_TOUCH);
  5. SetSensor(IN_4,SENSOR_TOUCH);
  6.  
  7. if(SENSOR_3==1)
  8. {
  9. OnFwd(OUT_B, 100);
  10. OnFwd(OUT_C, 100);
  11. }
  12. else if(SENSOR_4==1)
  13. {
  14. OnRev(OUT_B, 100);
  15. OnRev(OUT_C, 100);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement