Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. task main(){
  2.  
  3.   SetSensorLowspeed(IN_4);
  4.  
  5.   int Distance = 0;
  6.  
  7.   for(int x = 0; x < 4; x ++ ){
  8.  
  9.     OnFwdSync(OUT_BC, 50, -100);
  10.    
  11.     Wait(950);
  12.    
  13.     Distance = SensorUS(IN_4);
  14.    
  15.     Coast(OUT_BC);
  16.    
  17.     NumOut(0, LCD_LINE1, (Distance));
  18.    
  19.     PlayTone(440, 100);
  20.    
  21.   }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement