[solved] GoPiGo3 90 degree turn

Hello,

I’m wondering how I can program the GoPiGo3 to turn a specific degree amount. For instance with the GoPiGo2 I would do

gpg.turn_right(90)

Is there a new version of this for the GoPiGo3?

gpg3.turn_degrees(nb_degrees, blocking)
nb_degrees > 0 is a turn to the right,
nb_degrees < 0 is a turn to the left
blocking is a True/False. If True, your program will wait for this movement to be complete before moving on. If Blocking is set to False, the command will be given to the GPG3 to do the turn but control is returned to your program right away so you can keep on taking sensor readings while the turn is being done.

http://gopigo3.readthedocs.io/en/latest/api-basic.html#easygopigo3

1 Like

This topic was automatically closed after 28 hours. New replies are no longer allowed.