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

Method forward

Software/Python/easygopigo3.py:293–302  ·  view source on GitHub ↗

Move the `GoPiGo3`_ forward. For setting the motor speed, use :py:meth:`~easygopigo3.EasyGoPiGo3.set_speed`. Default ``speed`` is set to **300** - see :py:meth:`~easygopigo3.EasyGoPiGo3.__init__`.

(self)

Source from the content-addressed store, hash-verified

291 self.set_motor_dps(self.MOTOR_LEFT + self.MOTOR_RIGHT, 0)
292
293 def forward(self):
294 """
295 Move the `GoPiGo3`_ forward.
296
297 For setting the motor speed, use :py:meth:`~easygopigo3.EasyGoPiGo3.set_speed`.
298 Default ``speed`` is set to **300** - see :py:meth:`~easygopigo3.EasyGoPiGo3.__init__`.
299
300 """
301 self.set_motor_dps(self.MOTOR_LEFT + self.MOTOR_RIGHT,
302 self.NO_LIMIT_SPEED)
303
304 def drive_cm(self, dist, blocking=True):
305 """

Callers 10

MainFunction · 0.95
robotControlFunction · 0.95
MainFunction · 0.95
wait_for_buttonFunction · 0.45
gopigo3_instructionsFunction · 0.45
drive_gpgFunction · 0.45
easy_Motors.pyFile · 0.45

Calls 1

set_motor_dpsMethod · 0.45

Tested by

no test coverage detected