il est la, il est beau!!!!

Dependencies:   m3piBluetooth mbed

Files at this revision

API Documentation at this revision

Comitter:
thomasstrub
Date:
Thu May 03 14:40:33 2018 +0000
Parent:
0:b839dbffc636
Commit message:
version sans les warnings

Changed in this revision

m3pi.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
polulu.cpp Show annotated file Show diff for this revision Revisions of this file
polulu.h Show annotated file Show diff for this revision Revisions of this file
diff -r b839dbffc636 -r 63050abd40e9 m3pi.lib
--- a/m3pi.lib	Thu May 03 14:03:58 2018 +0000
+++ b/m3pi.lib	Thu May 03 14:40:33 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/Polybot1/code/m3piBluetooth/#b2df3579590b
+https://os.mbed.com/teams/Polybot1/code/m3pi_new/#ce6a608496fa
diff -r b839dbffc636 -r 63050abd40e9 main.cpp
--- a/main.cpp	Thu May 03 14:03:58 2018 +0000
+++ b/main.cpp	Thu May 03 14:40:33 2018 +0000
@@ -9,7 +9,7 @@
     int f = 115200;
     deffreq(f);
     
-    char c = 'a';
+    char* c = "a";
     char* message = "Hello World!";
     sendmsg(message);
     while(1) {
@@ -17,9 +17,9 @@
         getdir(c);
         char* message2 = "Je viens de recevoir :";
         sendmsg(message2);
-        sendmsg(&c);
+        sendmsg(c);
         //move
-        assignDirection(c, 0.2);
+        assignDirection(c[0], 0.2);
         getCapt();
         suiviIntersect();
     }
diff -r b839dbffc636 -r 63050abd40e9 polulu.cpp
--- a/polulu.cpp	Thu May 03 14:03:58 2018 +0000
+++ b/polulu.cpp	Thu May 03 14:40:33 2018 +0000
@@ -161,8 +161,8 @@
 //-------- recuperation de l info sur la direction ---------//
 
 
-void getdir(char c)
+void getdir(char* c)
 {
-    c = bt.getc();
+    c[0] = bt.getc();
 }
 
diff -r b839dbffc636 -r 63050abd40e9 polulu.h
--- a/polulu.h	Thu May 03 14:03:58 2018 +0000
+++ b/polulu.h	Thu May 03 14:40:33 2018 +0000
@@ -17,6 +17,6 @@
 
 void sendmsg(char* msg);
 
-void getdir(char c);
+void getdir(char* c);
 
 #endif
\ No newline at end of file