Zumo doesn't drive in a straight line

Hello!

Just a quick question about the Pololu Zumo (version 1). How can I get it to drive in a straight line? If I use the following code:

for (int speed = 0; speed <= 400; speed++)
  {
    motors.setLeftSpeed(speed);
    motors.setRightSpeed(speed);
    delay(5);
  }

The Robot always swings to the left. This happens with both my Zumo’s.

Is there any way around this, or is it just a feature?

Regards
Mark

Even supposedly identical motors spin at different speeds, when powered at the same voltage.

Experiment a bit, adding a small increment to the left motor speed.

Thanks for the Reply - I’ll give your suggestion a try!