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

Dependencies:   mbed TB6612FNG US015

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Move.h"
00003 
00004 int main() 
00005 {
00006     int distance;
00007     while(1) {
00008         if(distance <= 200) {
00009             MotorDriver(4, 0.5);
00010             pc.printf("alart");
00011         }
00012         else {
00013             MotorDriver(2, 1);
00014             pc.printf("Start Move");
00015             break;
00016         }
00017     }
00018 }