runallmotors()

Function Definition: runallmotors(FL speed = 50, BL speed = 50, BR speed = 50, FR speed = 50)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
FL speedintThe target speed value of the Front Left motor.-100 to 10050
BL speedintThe target speed value of the Back Left motor.-100 to 10050
BR speedintThe target speed value of the Back Right motor.-100 to 10050
FR speedintThe target speed value of the Front Right motor.-100 to 10050

Description

The function sets the motors of a device to a specified speed. It uses a scale of100 to 100, where100 is the motor running in reverse at full speed, 100 is the motor running in the forward direction at full speed, and 0 is when the wheel is stopped.

Example

There are no examples documented for this article.
Table of Contents