SDK API Reference Manual
Copyright © 2007, Dr Robot Inc. All Rights Reserved.
www.DrRobot.com
- 1 -
Table of Contents
I.
Convention..........................................................................................................................................2
II. WiRobot SDK Overview...................................................................................................................3
III. WiRobot SDK API Reference for PMS5005............................................................................5
III.1. Sensor Peripherals .................................................................................................................................5
III.1.1. Batch Sensor Data Updating API.............................................................................................5
III.1.2. Range and Distance Sensors.................................................................................................... 8
III.1.3. Human Sensors............................................................................................................................ 9
III.1.4. Tilt and Acceleration Sensor................................................................................................... 10
III.1.5. Temperature Sensors................................................................................................................ 11
III.1.6. Infrared Remote Control Handling .........................................................................................12
III.1.7. Battery Voltage Monitors.........................................................................................................13
III.1.8. Potentiometer Position Sensors ........................................................................................... 14
III.1.9. Motor Current Sensors..............................................................................................................15
III.1.10. Encoder.........................................................................................................................................16
III.1.11. Custom Analog and Digital Inputs and Outputs ..................................................................17
III.2. Motion Control.......................................................................................................................................19
III.2.1. DC Motor Control........................................................................................................................19
III.2.2. RC Servo Motor Control ...........................................................................................................31
III.3. Multimedia Control............................................................................................................................... 33
III.3.1. LCD Display ................................................................................................................................ 33
III.4. Events.....................................................................................................................................................34
IV. WiRobot SDK API Reference for PMB5010..........................................................................35
IV.1. Multimedia Control............................................................................................................................... 35
IV.1.1. Audio Input and Output............................................................................................................ 35
IV.1.2. Image Capturing......................................................................................................................... 37
IV.1.3. LCD Display ................................................................................................................................38
IV.2. Events.....................................................................................................................................................38
V. WiRobot DRK6000/8000 Specific APIs................................................................................. 39
V.1. Low Level Protection .........................................................................................................................39










