Manual
Copyright © Dr Robot Inc. 2008
1
Table of Contents
I.
Convention ...................................................................................................................................... 3
II. WiRobot SDK Overview ................................................................................................................ 4
III. WiRobot SDK API Reference for PMS5005.......................................................................... 6
III.1. Sensor Peripherals ................................................................................................................................ 6
III.1.1. Batch Sensor Data Updating API ............................................................................................ 6
III.1.2. Range and Distance Sensors .................................................................................................... 9
III.1.3. Human Sensors .......................................................................................................................... 10
III.1.4. Tilt and Acceleration Sensor .................................................................................................... 11
III.1.5. Temperature Sensors ................................................................................................................ 12
III.1.6. Infrared Remote Control Handling ......................................................................................... 13
III.1.7. Battery Voltage Monitors ........................................................................................................ 14
III.1.8. Potentiometer Position Sensors ............................................................................................ 15
III.1.9. Motor Current Sensors .............................................................................................................. 16
III.1.10. Encoder ......................................................................................................................................... 17
III.1.11. Custom Analog and Digital Inputs and Outputs .................................................................. 18
III.2. Motion Control ...................................................................................................................................... 20
III.2.1. DC Motor Control ....................................................................................................................... 20
III.2.2. RC Servo Motor Control ........................................................................................................... 31
III.3. Multimedia Control ............................................................................................................................... 34
III.3.1. LCD Display ................................................................................................................................ 34
III.4. Events ..................................................................................................................................................... 34
IV. WiRobot SDK API Reference for PMB5010 ........................................................................ 36
IV.1. Multimedia Control ............................................................................................................................... 36
IV.1.1. Audio Input and Output ............................................................................................................ 36
IV.1.2. Image Capturing ......................................................................................................................... 38
IV.1.3. LCD Display ................................................................................................................................ 39
IV.2. Events ..................................................................................................................................................... 39
V. Power Controller API ................................................................................................................. 40
V.1. short GetVolRef( ) .............................................................................................................................. 40
V.2. short GetBat1Vol( ) ............................................................................................................................ 40
V.3. short GetBat1Temp( ) ........................................................................................................................ 40
V.4. short GetBat2Vol( ) ............................................................................................................................ 40
V.5. short GetBat2Temp( ) ........................................................................................................................ 41
V.6. short GetDCINVol() ............................................................................................................................. 41
V.7. byte GetCHGPath( ) ............................................................................................................................ 41
V.8. byte GetPowerPath( ) ........................................................................................................................ 41
V.9. byte GetCHGStatus( )......................................................................................................................... 42
V.10. void SendCmdCHG( ) .......................................................................................................................... 42
VI. Constellation system API ....................................................................................................... 44










