go_away

Author Topic: irobot create move question  (Read 437 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);
       



 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2785 Views
Last post May 14, 2011, 08:22:11 AM
by madsci1016
1 Replies
3106 Views
Last post August 04, 2007, 01:54:41 PM
by Admin
3 Replies
3618 Views
Last post March 16, 2008, 09:05:33 AM
by Admin
4 Replies
1241 Views
Last post February 15, 2010, 11:01:01 PM
by jacksteel


Get Your Ad Here

data_list