Society of Robots - Robot Forum
Software => Software => Topic started by: nckspec on April 01, 2008, 01:11:22 PM
-
void robot_go_straight(void)
{
servo_left(25);
servo_right(44); I don't understand how this code would make it go straight if the left servo would go faster than the right.
-
A value of 25 makes the wheel turn full speed one way, 44 makes it turn full speed the other way. And a value of about 35 will make it stop.
The reason why the bot goes forward is that the motors are on the sides of the robot (ie one is flipped over in relationship to the other). So one has to go clockwise and the other anti-clockwise for the bot to go forwards.
-
u should have seen later posts on the same topic, everything is clearly explained