Author Topic: irobot create move question  (Read 538 times)

0 Members and 1 Guest are viewing this topic.

Offline Tracy MTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
irobot create move question
« 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);
       



 


Get Your Ad Here