I just finished setting up my GoPiGo3, and am experiencing some strange behavior when I try to control the robot using the python api.
If I run the following in the python prompt
>>> from easygopigo3 import EasyGoPiGo3 No module named di_sensors No module named di_sensors >>> gpg = EasyGoPiGo3() >>> gpg.forward() >>> gpg.stop() >>> gpg.forward()
The first gpg.forward() command works, e.g. both wheels spin. The second gpg.forward() command, however, does not work, e.g. the wheels start spinning but immediately stop.
If I then run
The right wheel spins, as it should. But if I run
The left wheel starts spinning but immediately stops. So something seems to be wrong with the left motor? But only the second time I try running it.
If I exit the python prompt and open a new prompt, the left motor will work the first time, but not the second time I command it to spin. When I get both motors to spin, they do seem to go at the same speed.
What could be happening, and how can I fix it?