3pi programming

Hello i have a problem .I am tring to program may 3pi robot but after programming when i am about to make the calibration one motor is going full speed while the other one in working properly…what sould i do??

Hello.

It sounds like maybe you just have a bug in your program. Can you edit your code to be the simplest thing that demonstrates the problem and post your code here?

- Ben

#include <pololu/orangutan.h>

int main()
{
while(1)
{
{
set_motors(20,20);

}

}
}

Evan with this simple code one motor is going crazy and the other one is working according the code…

Can you please try the following two programs and tell me what both motors do when you run each one? Also, how long have you had your 3pi and has it always behaved this way?

int main()
{
  set_m1_speed(20);
  while (1);
}
int main()
{
  set_m2_speed(20);
  while (1);
}

- Ben