Advertisement
chalommm

robot

Oct 23rd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. sub avanzar(){
  2. OnFwd(OUT_B, 38);
  3. OnFwd(OUT_C, 37);
  4. }
  5.  
  6. task main(){
  7. SetSensorLight(IN_4);
  8.  
  9.  
  10. while (TRUE){
  11. NumOut(5,5,SENSOR_4);
  12. if(SENSOR_4>= 27 && SENSOR_4<=35){
  13. OnFwd(OUT_B, 38);
  14. OnFwd(OUT_C, 37);
  15. } else if (SENSOR_4>35){
  16. OnFwd(OUT_B, 38);
  17.  
  18. }
  19. }
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement