positions[]
Description
Stores user-defined robot motion frames, namely the servo angles for all channels.
This array stores the servo angles for all channels, and its values can be specified by the user. The first element in position[] represents the AIServo angle for the first channel, the second element represents the AIServo angle for the second channel, and so on.
Servo angles for up to 64 channels can be specified.
Syntax
servoframe.positions[channel]
Parameters
servoframe
: A variable of type AIServoFrame
. channel
: Range: 0 ~ 63. Its value represents the Servo of the nth channel. Please see the example below for explanation.
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 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.