LCD_W_Word(0,0,"NRF24L01 RX_Mode");
LCD_W_Word(1,0,"Received DATA: ");
RX_Mode();
while(1)
{
if(NRF24L01_RxPacket(Time_Turn_Buf)==0) //以150为界限
{
if(NRF24L01_RxPacket(Time_Move_Buf)==0) //要减去-32
{
/**********************************开始对数组解码*******************************/
for(j = 0;j < strlen(Time_Move_Buf) - 3;j++) // forward的延时要求精确的话需要联系Turn_Move_Buf
{ // 转弯的要是不需要联系其他的东西只需要将后面的延时的时间调试好
if(j==0)
{
if(Time_Turn_Buf[0]=='B') {left();delay_turn(150);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='C') {forward();delay_s(4);stop();delay_turn(2);}
else if(Time_Turn_Buf[0]=='D') {right();delay_turn(150);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='E') {right();delay_turn(300);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='F') {right();delay_turn(450);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='G') {right();delay_turn(600);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='H') {left();delay_turn(450);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='I') {left();delay_turn(300);forward();delay_s(4);stop();delay_turn(1);}
else {stop();delayms(1);}
}
else
{
if(Time_Turn_Buf[j-1]=='B')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==7) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==6) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='C')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==6) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='D')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='E')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='F')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='G')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='H')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-6) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='I')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-7) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-6) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
else
{
stop();
delayms(1);
}
}
}
}
}
}
}
}
大概就是这样子了,花时间记录下这次的制作,一次美好的过程,一次美好的回忆。每一次辛酸的劳累,都是一次攀登;而每一次向上方的攀登,都是一次美好的经历;可不知道怎么的,给我最深的感觉却是每一次长久的经历,平静之后都是无法形容的失落。失落。
LCD_W_Word(0,0,"NRF24L01 RX_Mode");
LCD_W_Word(1,0,"Received DATA: ");
RX_Mode();
while(1)
{
if(NRF24L01_RxPacket(Time_Turn_Buf)==0) //以150为界限
{
if(NRF24L01_RxPacket(Time_Move_Buf)==0) //要减去-32
{
/**********************************开始对数组解码*******************************/
for(j = 0;j < strlen(Time_Move_Buf) - 3;j++) // forward的延时要求精确的话需要联系Turn_Move_Buf
{ // 转弯的要是不需要联系其他的东西只需要将后面的延时的时间调试好
if(j==0)
{
if(Time_Turn_Buf[0]=='B') {left();delay_turn(150);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='C') {forward();delay_s(4);stop();delay_turn(2);}
else if(Time_Turn_Buf[0]=='D') {right();delay_turn(150);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='E') {right();delay_turn(300);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='F') {right();delay_turn(450);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='G') {right();delay_turn(600);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='H') {left();delay_turn(450);forward();delay_s(4);stop();delay_turn(1);}
else if(Time_Turn_Buf[0]=='I') {left();delay_turn(300);forward();delay_s(4);stop();delay_turn(1);}
else {stop();delayms(1);}
}
else
{
if(Time_Turn_Buf[j-1]=='B')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==7) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==6) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='C')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==6) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='D')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==5) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='E')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='F')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==3) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='G')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==2) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='H')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==1) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-6) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
if(Time_Turn_Buf[j-1]=='I')
{
if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-1) {left();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==0) {forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-7) {right();delay_turn(150);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-6) {right();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-5) {right();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-4) {right();delay_turn(600);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-3) {left();delay_turn(450);forward();delay_s(3);stop();delay_turn(1);}
else if(Time_Turn_Buf[j]-Time_Turn_Buf[j-1]==-2) {left();delay_turn(300);forward();delay_s(3);stop();delay_turn(1);}
else {stop();delayms(1);}
}
else
{
stop();
delayms(1);
}
}
}
}
}
}
}
}
大概就是这样子了,花时间记录下这次的制作,一次美好的过程,一次美好的回忆。每一次辛酸的劳累,都是一次攀登;而每一次向上方的攀登,都是一次美好的经历;可不知道怎么的,给我最深的感觉却是每一次长久的经历,平静之后都是无法形容的失落。失落。
举报