I am new to programming the GoPiGo and need help. I started with the following code.
from gopigo import * enc_tgt(1,1,72) fwd()
This did exactly what I was expecting it to do, move forward by four revolutions of the wheels (except for slippage, I need to add ballast). So far, so good.
Then I thought I’d execute a right turn so I added…
I knew this wouldn’t be a 90 degree turn, but I was expecting the robot to move forward again by four revolutions and then rotate right by one revolution of the wheel. The GoPiGo didn’t move forward at all. It only rotated right the one revolution of the wheels.
Obviously the program is not giving the robot time to move forward before sending the
right_rot() command. What I need help with is how to make it finish going forward the prescribed distance before turning right.
I do not have any sensors yet so my goal is to program the robot so I am trying for now to program it to drive a path taped on the floor.