Class for communicating with a servo controller device.
function ServoDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with a servo controller device.
master | contains a pointer to the master object, see Master. |
deviceId | is the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master. |
function requestSetAngle(port:Number, angle:Number)Change the angle of a servo motor.
port | specifies the port of which the pulse width has to be changed, valid are 1 through 8. |
angle | specifies the angle it should be between 0 and 255, for most servos this means 0 to 180 degrees. |