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

Method left

Software/Python/easygopigo3.py:460–473  ·  view source on GitHub ↗

Move the `GoPiGo3`_ to the left. 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 r

(self)

Source from the content-addressed store, hash-verified

458 self.set_motor_dps(self.MOTOR_RIGHT, self.NO_LIMIT_SPEED * -1)
459
460 def left(self):
461 """
462 Move the `GoPiGo3`_ to the left.
463
464 For setting the motor speed, use :py:meth:`~easygopigo3.EasyGoPiGo3.set_speed`.
465 Default ``speed`` is set to **300** - see :py:meth:`~easygopigo3.EasyGoPiGo3.__init__`.
466
467 .. important::
468 | The robot will activate only the right motor, whilst the left motor will be completely stopped.
469 | This causes the robot to rotate in very short circles.
470
471 """
472 self.set_motor_dps(self.MOTOR_LEFT, 0)
473 self.set_motor_dps(self.MOTOR_RIGHT, self.NO_LIMIT_SPEED)
474
475 def spin_left(self):
476 """

Callers 7

MainFunction · 0.95
_gopigo3_command_leftMethod · 0.45
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