智能车制作
标题:
舵机转向问题的讨论
[打印本页]
作者:
jifadage11
时间:
2013-4-11 20:53
标题:
舵机转向问题的讨论
想请教下各位大神,下面这段程序到底是干啥用的? 是不是控制舵机转向的?
/*********************************************************
初始化全局变量
*********************************************************/
for(Atem8B0=0 ; Atem8B0 < 20; Atem8B0 ++) {
LineFav[Atem8B0] = 0X70;
}
for(Atem8B0=0 ; Atem8B0 < 50; Atem8B0 ++) {
ALeftLineAryy[Atem8B0] = 0X08;
}
for(Atem8B0=0 ; Atem8B0 < 50; Atem8B0 ++) {
ALastLeftLinAryy[Atem8B0] = 0X08;
}
for(Atem8B0=0 ; Atem8B0 < 50; Atem8B0 ++) {
ARightLineAryy[Atem8B0] = 0X29;
}
for(Atem8B0=0 ; Atem8B0 < 50; Atem8B0 ++) {
ALastRightLinAryy[Atem8B0] = 0X29;
}
StringMID[0] = 1250;
StringMID[1] = 1250;
StringMID[2] = 1250;
StringMID[3] = 1250;
StringMID[4] = 1000;
StringMID[5] = 800;
StringMID[6] = 600;
StringMID[7] = 400;
StringMID[8] = 200;
StringMID[9] = 0;
StringMID[10] = 0;
StringMID[11] = -500;
StringMID[12] = -700;
StringMID[13] = -1000;
StringMID[14] = -1150;
StringMID[15] = -1150;
StringMID[16] = -1150;
StringMID[17] = -1150;
StringMID[18] = -1150;
StringMID[19] = -1150;
StringMID[20] = -1150;
StringMID[21] = -1150;
StringMID[22] = -1150;
作者:
机遇
时间:
2013-4-11 21:18
这样神都看不懂
作者:
jifadage11
时间:
2013-4-11 21:19
那不知大神具体想看哪点的程序?
作者:
jifadage11
时间:
2013-4-11 21:26
机遇 发表于 2013-4-11 21:18
这样神都看不懂
那能麻烦说说像这种StringMID[0] = 1250;代表什么么?
作者:
tory柴
时间:
2013-4-12 11:20
欢迎光临 智能车制作 (http://111.231.132.190/)
Powered by Discuz! X3.2