EasyManua.ls Logo

Dobot AiStarter - Getting RGB Value

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
34
Table 7.13 Detect color
Function
bool AIStarter_SmartBotDetColorSenor (int port, int color)
Description
Detect color
Paramater
port:Color sensor
enum{
COLORSENOR1,
COLORSENOR2
};
color: Detect color
enum{
RCOLOR,
GCOLOR,
BCOLOR,
};
Return
Return 1: Color detected
Return 0: No color detected
7.16 Getting RGB Value
Table 7.14 Get RGB value
Function
int AIStarter_SmartBotGetColorSenor (int port,int color)
Description
Get RGB value
Paramater
port: Color sensor
enum{
COLORSENOR1,
COLORSENOR2
};
color: Get color
enum{
RCOLOR,
GCOLOR,
BCOLOR,
};
Return
Return color value

Table of Contents

Related product manuals