Class for communicating with a motor driver device.
function MotorDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with a motor driver 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 requestSetSpeeds(speed1:Number, speed2:Number)Change the speed of both motors at once
speed1 | specifies the speed of motor 1, it should be between -127 to 127, negative means turning backwards. |
speed2 | specifies the speed of motor 2, it should be between -127 to 127, negative means turning backwards. |