Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub avanzar(){
- OnFwd(OUT_C,30);
- OnFwd(OUT_B,20);
- }
- task main(){
- int x=1;
- SetSensorSound (IN_2);
- SetSensorLight (IN_3);
- SetSensorLowspeed (IN_4);
- while (TRUE){
- NumOut(5,5,SENSOR_3);
- if(SENSOR_3<=30){
- Off(OUT_BC);
- OnFwd(OUT_C,60);
- }
- else {
- Off(OUT_BC);
- OnFwd(OUT_B,60);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement