MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / right

Method right

Software/Python/easygopigo3.py:427–440  ·  view source on GitHub ↗

Move the `GoPiGo3`_ to the right. For setting the motor speed, use :py:meth:`~easygopigo3.EasyGoPiGo3.set_speed`. Default ``speed`` is set to **300** - see :py:meth:`~easygopigo3.EasyGoPiGo3.__init__`. .. important:: | The robot will activate only the

(self)

Source from the content-addressed store, hash-verified

425 self.NO_LIMIT_SPEED * -1)
426
427 def right(self):
428 """
429 Move the `GoPiGo3`_ to the right.
430
431 For setting the motor speed, use :py:meth:`~easygopigo3.EasyGoPiGo3.set_speed`.
432 Default ``speed`` is set to **300** - see :py:meth:`~easygopigo3.EasyGoPiGo3.__init__`.
433
434 .. important::
435 | The robot will activate only the left motor, whilst the right motor will be completely stopped.
436 | This causes the robot to rotate in very short circles.
437
438 """
439 self.set_motor_dps(self.MOTOR_LEFT, self.NO_LIMIT_SPEED)
440 self.set_motor_dps(self.MOTOR_RIGHT, 0)
441
442 def spin_right(self):
443 """

Callers 7

MainFunction · 0.95
gopigo3_instructionsFunction · 0.45
turn_gpgFunction · 0.45
easy_Motors.pyFile · 0.45

Calls 1

set_motor_dpsMethod · 0.45

Tested by

no test coverage detected