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

Dependencies:   mbed TB6612FNG US015

main.cpp

Committer:
ushiroji
Date:
6 months ago
Revision:
0:92fbe3130656

File content as of revision 0:92fbe3130656:

#include "mbed.h"
#include "Move.h"

int main() 
{
    int distance;
    while(1) {
        if(distance <= 200) {
            MotorDriver(4, 0.5);
            pc.printf("alart");
        }
        else {
            MotorDriver(2, 1);
            pc.printf("Start Move");
            break;
        }
    }
}