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