Hello, fellow “GoPiGoers”.
I ran into an interesting issue while writing a simple Python script to make the GoPiGo move.
Here’s what I did:
- Logged in to my GoPiGo through SSH (with Putty) and started the Python interactive shell
- Imported the gopigo module by writing from gopigo import *
- Typed in fwd() to make the robot move forward
The GoPiGo moved forward a little bit and stopped. I typed in fwd() again and it did the same thing. I typed in fwd() one more time and this time the GoPiGo started moving forward and keep moving forward until I typed in stop(). Something similar happens with bwd(), right() and left().
Now I am confused as to how these functions are supposed to work. Are they supposed to be used with stop() or are they supposed to execute the command they are named after for a little while and stop on their own?
Thanks,
Carlos