高级会员
- 积分
- 623
- 威望
- 288
- 贡献
- 293
- 兑换币
- 0
- 注册时间
- 2011-3-17
- 在线时间
- 21 小时
|
switch(i) 传感器的状态
{case 0x01:bangbang(63,10);
PWMDTY23=185; stor_steer=PWMDTY23;
PWMDTY4=30; bangbang(63,10);
break;
case 0x02WMDTY23=170;stor_steer=PWMDTY23;
PWMDTY4=v+2;
break;
case 0x04:
PWMDTY23=160;stor_steer=PWMDTY23;
PWMDTY4=v+3;
break;
case 0x08:
PWMDTY23=150; stor_steer=PWMDTY23;
PWMDTY4=v+15;bangbang(70,10);
break;
case 0x18:
PWMDTY4=v+20;
PWMDTY23=150; stor_steer=PWMDTY23;
bangbang(70,10);
break;
case 0x10:
PWMDTY23=150; stor_steer=PWMDTY23;
PWMDTY4=v+15;bangbang(70,10); stor_motor=PWMDTY4;
break;
case 0x20:
PWMDTY23=140; stor_steer=PWMDTY23;
PWMDTY4=v+3;
break;
case 0x40:
PWMDTY23=130; stor_steer=PWMDTY23;
PWMDTY4=v+2;
break;
case 0x80:bangbang(63,10)WMDTY23=110; stor_steer=PWMDTY23; 存电机的变量
PWMDTY4=30;
bangbang(63,10);
break;
case 0xFF: 虚线全白时的状态
PWMDTY23=stor_steer;
/*PWMDTY4=0; PWMDTY4=40; bangbang(60,10);bangbang算法*/ break;
} |
|