Sz_Insper / Mbed 2 deprecated Line_follow

Dependencies:   mbed

Revision:
1:fe4f6f2d9ca6
Parent:
0:0d443d0229c9
Child:
2:482c3ed45884
Child:
4:d95040ff04e6
--- a/main.cpp	Fri Oct 05 18:11:37 2018 +0000
+++ b/main.cpp	Mon Oct 08 13:26:21 2018 +0000
@@ -1,3 +1,12 @@
+/*
+Autor Marcelo Costanzo Miranda
+Data 08 de Outubro de 2018
+
+Codigo base para robo seguir de linha, funcionando
+
+Insper, Laboratório de Sistema Mecatrôncios
+*/
+
 #include "mbed.h"
 #define corte 2800
 
@@ -34,8 +43,8 @@
         S1_val = S1_val * 3300; // Converts value in the 0V-3.3V range
         
         // Display values
-        printf("measure S0 = %.0f mV\n", S0_val);
-        printf("measure S1 = %.0f mV\n", S1_val);
+        //printf("measure S0 = %.0f mV\n", S0_val);
+        //printf("measure S1 = %.0f mV\n", S1_val);
         
         if(BT == 0)
         {
@@ -53,7 +62,7 @@
         
         if(flag == 1)
         {
-            printf("ACIONADO\n");
+            //printf("ACIONADO\n");
             if((S0_val > corte) && (S1_val > corte))
             {
                 IN2A = 0;