setPostions()
Description
Assigns a list of target positions representing frames to each servo.
Grammar
asiervoframerobotis.setPositions() asiervoframerobotis.setPositions(servo1) asiervoframerobotis.setPositions(servo1, servo2) asiervoframerobotis.setPositions(servo1, servo2, ... , servo64) asiervoframerobotis.setPositions(time) asiervoframerobotis.setPositions(time, servo1) asiervoframerobotis.setPositions(time, servo1, servo2) asiervoframerobotis.setPositions(time, servo1, servo2, ... , servo64)
Parameters
asiervoframerobotis
: Variables of type AIServoFrameRobotis
.
servo1 to servo64
: Variables of type AIServo
.
time
(optional): The time it takes for the servo to reach the target position. If no value is set or the value is 0, the servo will rotate at full speed.
Postback
None
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
See also
- positions[]
- playPositions()
Library Reference Home Page
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.