一、左转算法步骤
1、传感器感应到黑线后再向前走一定距离。
motor(20,20,70);
2、向左旋转一定距离。
motor(-20,20,200);
3、车身再向前走一定距离。
4、继续左转,直到左边传感器感应到黑线。
while(1) {
wheel(-20,20);
if((AA1>50)&&(AA2<50))
break;
}
在此发表评论!
部编版小学语文《口语交际:我是小小讲解员》
部编版小学语文五下《语文园地六》
pep六上Unit 4教案_6英鲍巧玲
pep六上Unit 3教案_6英鲍巧玲
U4 第6课时 B Read and write& Let's check& Let's wrap it up& C Story time
U4 第2课时 A Let's learn & Ask and answer
U4 第4课时 B Let's try & Let's talk 教案
U4 第3课时 A Let's spell 教案
U4 第5课时 B Let's learn & Look and write