EasyManua.ls Logo

Dobot AiStarter - 7.20 Getting Photosensitive Value; 7.21 Setting Ultrasonic Threshold

Dobot AiStarter
41 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AiStarter User Guide 7API Function
IssueV1.0.32018-09-01 AiStarter User Guide Copyright © Yuejiang Technology Co., Ltd
31
};
Return
Return motor value
7.7 Initializing Ultrasonic Sensor
Table 7.5 Initialize ultrasonic sensor
Function
int AIStarter_SmartBotSetSonar (int port)
Description
Initialize ultrasonic sensor
Paramater
port: Select ultrasonic sensor
enum {
SONAR1,
SONAR2,
SONAR3
};
Return
None
7.8 Getting the Detection Distance of Ultrasonic Sensor
Table 7.6 Get the detection distance of ultrasonic sensor
Function
float AIStarter_SmartBotGetSonar (int port)
Description
Get the detection distance of ultrasonic sensor
Paramater
port: Select ultrasonic sensor
enum {
SONAR1,
SONAR2,
SONAR3
};
Return
Return detection distance (Unit: cm)
7.9 Detecting obstacle
Table 7.7 Detect obstacle
Function
bool AIStarter_SmartBotGetBarrier (int port)
Description
Detect obstacle

Table of Contents

Related product manuals