Advertisement
Kl43z

Robot Perfecto

Sep 25th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #define vela 80
  2. #define velb 80
  3.  
  4. sub avanzar(){
  5. OnFwd(OUT_C,vela);
  6. OnFwd(OUT_B,velb);
  7. Wait(1500);
  8.  
  9. }
  10.  
  11. sub doblar(){
  12. OnFwd(OUT_C,70);
  13. OnRev(OUT_B,80);
  14. Wait(320);
  15. }
  16. sub cuadrado(){
  17. repeat(3){
  18. avanzar();
  19. doblar();
  20. }
  21. avanzar();
  22. Off(OUT_BC);
  23.  
  24. }
  25.  
  26. task main(){
  27. cuadrado();
  28. }
  29.  
  30.  
  31. ///// ROBOT 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement