Sub project 3

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
55 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 16, 2010

Had to take the greater and less than symbols out for YouTube to like it.

//Subproject 3
//Tim

#include pololu/3pi.h

int main()
{
print("PRESS B");//has user press button B to execute program

while(1)
{
wait_for_button(BUTTON_B);

delay_ms(500);//waits for half second
set_motors(50,-50);
delay_ms(400);//robot turns right 90 degrees
set_motors(0,0);
delay_ms(2000);//robot stops for 2 seconds
set_motors(50,-50);
delay_ms(400);//robot turns right 90 degrees
set_motors(0,0);//robot stops

}
return 0;
}

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more