movelimb()

Function Definition: movelimb(servo motor number = 1, angle = 90, time = 1000)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
servo motor numberintThe servo motor number: Front Right Hip (1), Front Left Hip (2), Front Right Leg (3), Front Left Leg (4), Back Right Hip (5), Back Left Hip (6), Back Right Leg (7), Back Left leg (8)1-81
angleintThe angle to which the servo motor needs to be set.0-18090
timeintThe time in which the the servo motor move from the initial position to the new position.0-100001000

Description

The function sets the selected servo motor angle to the specified angle in the specified time. This creates a smooth motion for the servo motor from the current angle to the specified angle.

Example

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