1. servo driver [index] sets angle to [angle] °
Rotates the servo horn on the servo drived by the specified servo driver to the specified angle
How to Use
The number in this block indicates the place of a servo driver among the ones connected to Halocode. As shown in the following figure, the number 1 indicates the first servo driver connected to Halocode, 2 indicates the second one, and so on.
Click to select a servo driver and set an angle.
Example
When you press the space key, the servo horn on the servo drived by the servo driver rotates to the 90-degree position.
2. servo driver [index] increases angle by [angle] °
Changes the angle at which the servo horn on the servo drived by the specified servo driver is positioned
How to Use
Click to set the amount by which the angle of the servo horn is to be changed. A positive value indicates increasing the angle, and a negative one indicates decreasing the angle.
Example
When you press the space key, the servo horn rotates to the 90-degree position, and the angle is increased by 10 degrees every second for five seconds.
3. servo driver [index] back to zero position
Rotates the servo horn on the servo drived by the specified servo driver to the 0-degree position
How to Use
Click to select a servo driver.
Example
When you press the space key, the servo horn on the servo drived by the servo driver rotates to the 90-degree position and rotates to the 0-degree position in two seconds.
4. servo driver [index] current angle(°)
Reports the angle at which the servo horn on the servo drived by the specified servo driver is positioned
How to Use
Click to select a servo driver from the drop-down list box.
You can select the check box on the left of this block to see the angle of the servo horn on the stage.
This is a reporter block that must be used in combination with another block requiring data.
Example
When you press the space key, the LED matrix displays the angle of the the servo horn on the servo drived by the servo driver.
Note: Ensure that you have connected an LED matrix to Halocode.