?? stop.c
字號(hào):
#ifndef _STOP_
#define _STOP_
#include "HardwareInfo.c"
#include <GetCompoI.h>
#include <SetMotor.h>
void stop(unsigned char yfy)
{
unsigned char fyMax = 0; //當(dāng)前所有通道的最大光值
fyMax = GetCompoI(_COMPOUNDEYE_fy_, 9);
while ( (fyMax<yfy) )
{
fyMax = GetCompoI(_COMPOUNDEYE_fy_, 9);
SetMotor(_MOTOR_left_, 1, 1);
SetMotor(_MOTOR_right_, 1, 1);
}
}
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -