Polybot / Mbed 2 deprecated polulu_pacman

Dependencies:   m3piBluetooth mbed

main.cpp

Committer:
thomasstrub
Date:
2018-05-03
Revision:
1:63050abd40e9
Parent:
0:b839dbffc636

File content as of revision 1:63050abd40e9:

#include "mbed.h"
#include "m3pi.h"
#include "polulu.h"



int main() 
{
    int f = 115200;
    deffreq(f);
    
    char* c = "a";
    char* message = "Hello World!";
    sendmsg(message);
    while(1) {
        stop_motors();
        getdir(c);
        char* message2 = "Je viens de recevoir :";
        sendmsg(message2);
        sendmsg(c);
        //move
        assignDirection(c[0], 0.2);
        getCapt();
        suiviIntersect();
    }
}