Hiya
So i managed to get the robot built, and the servo functions working.
Unfortunately i cannot seem to find a way to code it to do the following:
Drive at a speed of 120 for 2 seconds
Stop
Wait for 2 seconds
Reverse at a speed of 60 for 1 second
I can get it to go forward and back but i cannot get it to drive for a set period of time.
is this an issue with using PWM? I did try using serial packets but it failed

anyone got any idea?
Here is my code
#include <Servo.h>
Servo motorR;
Servo motorL;
int speedo;
void setup()
{
motorR.attach(9);
motorL.attach(10);
}
void drive(int speedo)
{
motorR.write(speedo);
motorL.write(speedo);
return;
}
void left()
{
motorR.write(120);
motorL.write(60);
}
void right()
{
motorR.write(60);
motorL.write(120);
}
void STOP()
{
motorR.write(90);
motorL.write(90);
return;
}
void loop()
{
drive(1200);
delay(2000);
drive(1800);
//right();
//drive(105);
//left();
}