activity bot code help
ASHEN
Posts: 14
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);
}
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);
}