User manual

Copyright © Dr Robot Inc. 2006
15
Figure V.4 GUI of the WiRobot X80 Controller (VB)
User can click the button on the interface to control the robot as long as the “WiRobot Gateway” is
connected to the robot.
The following are some functions used in this sample application for controlling the servos mounted on
the head:
WiRobotSDK1.EnableServo 0
WiRobotSDK1.ServoTimeCtr 0, 3800, 1000
The
WiRobotSDK1is the WiRobot SDK Component ActiveX control. The first line will enable the channel
0 servo. The second line will control the servo to take 1000ms to the target position of 3800.
User can also obtain and control the multimedia information of the robot simply by calling the
following functions
WiRobotSDK1.PlayAudioFile sourceFileName
The function will play the wave file to the robot with the sound file stored in the “sourceFileName”
which is in .WAV format.