//变量声明
unsigned int time = 0;
unsigned int timer = 0;
unsigned char posit = 0;
unsigned long S = 0;
unsigned long BJS;//报警距离
char num = 0;
uchar count = 0;
//模式 0正常模式 1调整
char Mode = 0;
bit flag = 0;
}
void usart_service()
{
switch(bluetoothdata)
{
case '1':run();break;
case '2':leftrun();break;
case '3':rightrun();break;
case '4':Backoff();break;
case '5':stoprun();break;
case '6':Automatic_following();break;
}
}
/*********************************************************
**********************************************************/