Has anyone encountered random drifting as the GoPiGo is moving forward? We are programming ours in Python and cannot consistently drive forward in a straight line. I found the article on setting the trim and have done so, but even then the GoPiGo drifts all over the place. And to make matters worse, it is not consistent.
At first we had thought the drift was speed related because it seemed slower speeds would drift one direction and faster speeds would drift the other with speeds around 100-110 staying pretty straight. Then as we started driving driving the robot longer distances (the goal is to program it to drive around a large table in the center of the classroom) it started displaying more erratic behavior. Sometimes it goes straight for 5-6 feet before veering off course. Other times it just drives in a nice, wide arc.
We are using the
fwd() command, but after reading the documentation it is behaving as if we are using the
motor_fwd() command. I had thought the encoders were on by default and helped the robot drive straight with the
fwd() command. Is this not the case? Do I need to make sure they are on first?
Anyone have any words of wisdom?