Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:fe4f6f2d9ca6
- Parent:
- 0:0d443d0229c9
- Child:
- 2:482c3ed45884
- Child:
- 4:d95040ff04e6
diff -r 0d443d0229c9 -r fe4f6f2d9ca6 main.cpp
--- 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;