・An error occurs if XCTRLSTYLE is used without starting Toy-Con Robot recognition.
ID of the controller that acquires information: 1 to 2
Return a bit value indicating whether each slot of the Toy-Con Robot is recognized
・Recognizing each bit 1 but not 0.
bit0 | Right Foot |
bit1 | Right Hand |
bit2 | Left Hand |
bit3 | Left Foot |
Return a 2D numeric array containing information for each slot
The meaning of Y and X when the array element is [Y, X] is as follows
Y=0 | Right Foot |
1 | Right Hand |
2 | Left Hand |
3 | Left Foot |
X=0 | Corrected Detection Value: 0 to 1 |
1 | Detection Value Before Correction: 0 to 320 |
2 | Min Correction Value: 0 to 320 |
3 | Max Correction Value: 0 to 320 |
4 | Corresponding Cluster ID |
Posture angle information with the Toy-Con Robot
・The unit of angle is radian.
Pitch | Tilt back and forth. If Toy-Con is tilted to the back, it is positive (value increases) |
Roll | Tilt left and right. If Toy-Con is tilted to the left, it is positive |
Yaw | Hip rotation. Rotate counterclockwise to make positive |