il est la, il est beau!!!!

Dependencies:   m3piBluetooth mbed

Committer:
thomasstrub
Date:
Thu May 03 14:40:33 2018 +0000
Revision:
1:63050abd40e9
Parent:
0:b839dbffc636
version sans les warnings

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasstrub 0:b839dbffc636 1 #include "mbed.h"
thomasstrub 0:b839dbffc636 2 #include "m3pi.h"
thomasstrub 0:b839dbffc636 3 #include "polulu.h"
thomasstrub 0:b839dbffc636 4
thomasstrub 0:b839dbffc636 5
thomasstrub 0:b839dbffc636 6
thomasstrub 0:b839dbffc636 7 int main()
thomasstrub 0:b839dbffc636 8 {
thomasstrub 0:b839dbffc636 9 int f = 115200;
thomasstrub 0:b839dbffc636 10 deffreq(f);
thomasstrub 0:b839dbffc636 11
thomasstrub 1:63050abd40e9 12 char* c = "a";
thomasstrub 0:b839dbffc636 13 char* message = "Hello World!";
thomasstrub 0:b839dbffc636 14 sendmsg(message);
thomasstrub 0:b839dbffc636 15 while(1) {
thomasstrub 0:b839dbffc636 16 stop_motors();
thomasstrub 0:b839dbffc636 17 getdir(c);
thomasstrub 0:b839dbffc636 18 char* message2 = "Je viens de recevoir :";
thomasstrub 0:b839dbffc636 19 sendmsg(message2);
thomasstrub 1:63050abd40e9 20 sendmsg(c);
thomasstrub 0:b839dbffc636 21 //move
thomasstrub 1:63050abd40e9 22 assignDirection(c[0], 0.2);
thomasstrub 0:b839dbffc636 23 getCapt();
thomasstrub 0:b839dbffc636 24 suiviIntersect();
thomasstrub 0:b839dbffc636 25 }
thomasstrub 0:b839dbffc636 26 }