Advertisement
Guest User

subirudoistiuzin

a guest
Apr 1st, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. task main()
  2. { //Ligar Os Sensores
  3. SetSensorLight(IN_3);
  4. SetSensorLight(IN_2);
  5.  
  6. while (true)
  7. {
  8.  
  9. if(Sensor(IN_3)< 47 )
  10. {
  11. Off(OUT_C);
  12. OnFwd(OUT_A,67);
  13. }
  14. else
  15. {
  16. OnRev(OUT_A,67);
  17. }
  18.  
  19. if(Sensor(IN_2)< 47 )
  20. {
  21. Off(OUT_A);
  22. OnFwd(OUT_C,67);
  23. }
  24. else
  25. {
  26. OnRev(OUT_C,67);
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement