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
void AIStarter_SmartBotSetCompassCalibration()
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
7.13 Setting White Balance
Table 7.11 Set white balance
int AIStarter_SmartBotSetColorWB(int port)
port: Color sensor
enum{
COLORSENOR1,
COLORSENOR2
};
7.14 Setting Color Sensor Status
Table 7.12 Set color sensor status
int AIStarter_SmartBotSetColorSenor (int port,bool ison)
port: Color sensor
enum{
COLORSENOR1,
COLORSENOR2
};
Ison: True: open, False: close
7.15 Detecting Color