Shop OBEX P1 Docs P2 Docs Learn Events
activity bot code help — Parallax Forums

activity bot code help

ASHENASHEN Posts: 14
edited 2014-04-18 17:03 in General Discussion
i am trying to make the robot go straight then take a 90 degree turn and then go straight. The software is simple ide.

The robot goes straight and then turns 90 but does not go forward instead it goes forward for a split second and then begins doing 360's. It is not executing the third set of code.

BTW i am high school student doing this for a project.

Here is the code i am using.

#include "simpletools.h" #include "abdrive.h"




int main()
{

drive_speed(64, 64);
pause(2000);
drive_speed(0, 0);


drive_speed(26, 0);
pause(320);
drive_speed(0, 0);


drive_speed(64, 64);
pause(2000);
drive_speed(0, 0);


}
Sign In or Register to comment.