User manual

Copyright © Dr Robot Inc. 2006
17
Figure V.6 GUI of the WiRobot DRK6000/8000 Controller (VC++)
To obtain an image from the robot, user can call the following function where m_ctlSDK is a member
variable of the class CWiRobotSDK imported from the “WiRobot SDK ActiveX Module”
m_ctlSDK.TakePhoto ();
To control the robot to move forward continuously, user can call the following functions
m_ctlSDK.SetDcMotorControlMode (0, 0);
m_ctlSDK.SetDcMotorControlMode (1, 0);
m_ctlSDK.DcMotorPwmTimeCtrAll (32066, 32066, -32768, -32768, -32768, -32768, 800);
To stop the robot, the following commands can be used:
m_ctlSDK.SuspendDcMotor (0);
m_ctlSDK.SuspendDcMotor (1);
For details on how to control the robot using Microsoft Visual C++, please refer to the sample C++
source code and Chapter III. WiRobot SDK API (Page 26).
V.5 Other Sample Applications
More sample applications are available in the “SampleApps” folder for reference.
VI. Miscellaneous
VI.1 System Update
Dr Robot will provide software update for both the PC software as well as the DSP software to
enhance the existing features. User can visit www.DrRobot.com
to check for any new updates
available for the existing system.