回避用のプログラムです。

Dependencies:   mbed TB6612FNG US015

Committer:
ushiroji
Date:
Thu Oct 21 12:10:23 2021 +0000
Revision:
0:92fbe3130656
test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ushiroji 0:92fbe3130656 1 #include "mbed.h"
ushiroji 0:92fbe3130656 2 #include "Move.h"
ushiroji 0:92fbe3130656 3
ushiroji 0:92fbe3130656 4 int main()
ushiroji 0:92fbe3130656 5 {
ushiroji 0:92fbe3130656 6 int distance;
ushiroji 0:92fbe3130656 7 while(1) {
ushiroji 0:92fbe3130656 8 if(distance <= 200) {
ushiroji 0:92fbe3130656 9 MotorDriver(4, 0.5);
ushiroji 0:92fbe3130656 10 pc.printf("alart");
ushiroji 0:92fbe3130656 11 }
ushiroji 0:92fbe3130656 12 else {
ushiroji 0:92fbe3130656 13 MotorDriver(2, 1);
ushiroji 0:92fbe3130656 14 pc.printf("Start Move");
ushiroji 0:92fbe3130656 15 break;
ushiroji 0:92fbe3130656 16 }
ushiroji 0:92fbe3130656 17 }
ushiroji 0:92fbe3130656 18 }