EasyManua.ls Logo

Dobot AiStarter - 7.10 Getting Infrared Sensor Data; 7.11 Getting Geomagnetic Angle; 7.12 Geomagnetic Calibration

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 6AI-Starter Demo
IssueV1.0.32018-09-01 AiStarter User Guide Copyright © Yuejiang Technology Co., Ltd
27
AIStarter_SmartBotGetColorSenor(COLORSENOR1,RCOLOR)
AIStarter_SmartBotGetColorSenor(COLORSENOR1,BCOLOR) > 30) {
colorState = RLINE;
}
3) AI-Starter executes different action according to different color status.
Program 6.15 Execute action
switch(colorState) {
case OTHERLINE:
//colorRec = false;
lineState = LINEPATROL;
break;
case RLINE:
delay(3000);
//colorRec = false;
lineState = LINEPATROL;
break;
case GLINE:
delay(3000);
//colorRec = false;
lineState = LINEPATROL;
break;
default:
break;
}
Magician
1 Set cube position.
Program 6.16 Set cube position
float AreaPoint[4][3] = {
{137.05, -206.94, -39},
{137.05, -244.31, -39},
{100.50, -206.94, -39},
{100.50, -244.31, -39}
};

Table of Contents

Related product manuals