
AiStarter User Guide
7API Function
IssueV1.0.3
(
2018-09-01
)
AiStarter User Guide
Copyright © Yuejiang Technology Co., Ltd
33
Table 7.10 Geomagnetic calibration
Function
void
AIStarter_SmartBotSetCompassCalibration()
Description
Calibration method: Press down the left-most key after starting up, make AI-Starter rotate
360
°
around space axes X, Y, Z respectively, press down the left-most key once again to
finish calibration
Paramater
None
Return
None
7.13
Setting White Balance
Table 7.11 Set white balance
Function
int
AIStarter_SmartBotSetColorWB(
int
port)
Description
Set white balance
Paramater
port: Color sensor
enum
{
COLORSENOR1,
COLORSENOR2
};
Return
None
7.14
Setting Color Sensor Status
Table 7.12 Set color sensor status
Function
int
AIStarter_SmartBotSetColorSenor (
int
port,
bool
ison)
Description
Set color sensor status
Paramater
port: Color sensor
enum
{
COLORSENOR1,
COLORSENOR2
};
Ison: True: open, False: close
Return
None
7.15
Detecting Color