stop.c
来自「一个机器人提足球的代码!基于神经网络! 一个机器人提足球的代码!基于神经网络!」· C语言 代码 · 共 20 行
C
20 行
#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 + =
减小字号Ctrl + -
显示快捷键?