Society of Robots - Robot Forum

Software => Software => Topic started by: Tracy M on December 05, 2011, 11:18:38 AM

Title: irobot create move question
Post by: Tracy M on December 05, 2011, 11:18:38 AM
hi everybody , I have a problem . 
I want my robot can continue move and continue walk.
How can I modify my code ?

Here is my code:


        servo_scan(scan_angle);
 for(uint16_t i=850;i<1300;i+=5)
     {
      servo_scan(i);      
               delayMs(10);
          }
for(uint16_t i=1300;i>300;i-=5)
     {
          servo_scan(i);
          delayMs(10);
     }
for(uint16_t i=300;i<850;i+=5)
     {
         servo_scan(i);
         delayMs(10);
      } 
      straight(1200,200);  //distance and speed
      rotate_CCW(89,200);