Voili voilou

Dependencies:   RoboClaw StepperMotor mbed

Fork of Robot2016_2-0 by ARES

Revision:
46:8eae88c45a78
Parent:
45:b53ae54062c6
--- a/Functions/func.cpp	Wed Apr 13 12:47:47 2016 +0000
+++ b/Functions/func.cpp	Wed Apr 20 13:13:37 2016 +0000
@@ -107,8 +107,8 @@
 
 void checkAround(void)
 {
-    if(capt1 > SEUIL+0.1) bleu = 1;
-    else bleu = 0;
+    if(capt1 > SEUIL+0.1) S::bleu = 1;
+    else S::bleu = 0;
     if(capt2 > SEUIL) blanc = 1;
     else blanc = 0;
     if(capt3 > SEUIL+0.1) rouge = 1;
@@ -135,8 +135,8 @@
 
 void init_interrupt(void)
 {
-    mybutton.fall(&pressed);
-    mybutton.rise(&unpressed);
+    S::mybutton.fall(&pressed);
+    S::mybutton.rise(&unpressed);
 
     EndL.fall(&ELpressed);
     EndL.rise(&ELunpressed);