positions[]
Description
Stores a list of all servo positions. This list contains the AIServo positions for all channels, and its values are user-defined. The first element in position[] represents the AIServo position for the first channel, the second element represents the AIServo position for the second channel, and so on. You can call attach() to specify the AIServo ID that positions[] corresponds to.
Syntax
aiservoframerobotis.positions[channel]
Parameters
aiservoframerobotis
: Variable of type AIServoFrameRobotis
.
channel
: Range: 0 to 63. The value represents the Servo on channel n. If you use load() to read the RoboPlus Motion frame file, the number of channels will be fixed at 26. The servo angles of the 0th to 25th channel groups are stored in positions[0], positions[1] … positions[25] respectively. The contents of positions[] after the 26th group are all 0.
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
Library Reference Home
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.