Here ae the forward and turn functions I used in line follower:
void forward() // forward function
{
servoLeft.writeMicroseconds(1600); // Left wheel counterclockwise
servoRight.writeMicroseconds(1400); }
void softleft()
{
servoLeft.writeMicroseconds(1500); // Left wheel stop
servoRight.writeMicroseconds(1300); // Right wheel clockwise
}
void softright()
{
servoLeft.writeMicroseconds(1700); // Left wheel stop
servoRight.writeMicroseconds(1500); // Right wheel clockwise
}
I want to use delay for the followline function but not for the individual function above, Is there a way to do that ? I tried to use delay() at the end of followline but it does not work.
It is a boe bot with qti sensors and I am trying to turn it 90 degrees, From internet I thought I could use delay after the sevro speed(like in the function above) but that is not working
but my bot does not stop after delay(); is over, Also another question does millis() keeps track of time even after i detach the Servos but everything else is connected.