Diego Coll / Mbed 2 deprecated Praxis

Dependencies:   mbed BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG

Revision:
2:997b65c65e65
Parent:
1:6e255a933812
Child:
3:b12ac8d9c397
--- a/main.cpp	Thu Jun 08 00:17:30 2017 +0000
+++ b/main.cpp	Mon Aug 14 19:41:43 2017 +0000
@@ -2,6 +2,7 @@
 #include "mbed.h"
 #include "TS_DISCO_F746NG.h"
 #include "LCD_DISCO_F746NG.h"
+//#include "EthernetInterface.h"
 
 //-------------------------------------------- definicion de uarts
 
@@ -15,11 +16,15 @@
 
 LCD_DISCO_F746NG lcd;
 TS_DISCO_F746NG ts;
+
 InterruptIn button(BUTTON1);
 DigitalOut myled(LED1);
 
 //-------------------------------------------- definicion de variables globales
 
+//const char* ECHO_SERVER_ADDRESS = "192.168.2.2";
+//const int ECHO_SERVER_PORT = 7;
+
 string ID="C1",ST="OK",AC="",AK="";
 //char IDs[]="",STs[]="",ACs[]="",AKs[]="";
 
@@ -152,21 +157,21 @@
             yx= 120 - *aux[3];
             yy= 190 - *aux[4];
             yz= 260 - *aux[5];
-            //uart.putc(yx);
-            //uart.putc(yy);
-            //uart.putc(yz);
+            pc.putc(yx);
+            pc.putc(yy);
+            pc.putc(yz);
             //uart.printf("<%s;%s;DT;2F>",ID,ST);
             }
         if(strcmp(aux[2],"D2") == 0){
-            gx=*aux[3];
-            gy=*aux[4];
-            gz=*aux[5];
+            gx= 120 - *aux[3];
+            gy= 190 - *aux[4];
+            gz= 260 - *aux[5];
             //uart.printf("<%s;%s;DT;2F>",ID,ST);
             }
         if(strcmp(aux[2],"D3") == 0){
-            mx=*aux[3];
-            my=*aux[4];
-            mz=*aux[5];
+            mx= 120 - *aux[3];
+            my= 190 - *aux[4];
+            mz= 260 - *aux[5];
             //uart.printf("<%s;%s;DT;2F>",ID,ST);
             }        
         }