STM Imu acquisition setup using ethernet

Dependencies:   F7_Ethernet mbed HTS221 LPS22HB LSM303AGR LSM6DSL

Fork of Nucleo_F746ZG_Ethernet by Dieter Graef

Files at this revision

API Documentation at this revision

Comitter:
nirnakern
Date:
Mon Oct 15 14:41:19 2018 +0000
Parent:
8:ee9a824852bf
Commit message:
First Commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jan 31 13:27:53 2018 +0000
+++ b/main.cpp	Mon Oct 15 14:41:19 2018 +0000
@@ -11,7 +11,7 @@
 #define RAW 0
 
 static XNucleoIKS01A2 *mems_expansion_board = XNucleoIKS01A2::instance(D14, D15, D4, D5);
-Timer t;
+
 DigitalOut myled1(LED1);
 DigitalOut myled2(LED2);
 DigitalOut myled3(LED3);
@@ -40,9 +40,9 @@
     acc_gyro->set_g_fs(125.0f);
     
     //cpose per comunicazioni
-    const char * IP = "169.254.112.124";
+    const char * IP = "192.168.1.205";
     const char * MASK = "255.255.255.0";
-    const char * GATEWAY = "169.254.112.1";
+    const char * GATEWAY = "192.168.1.1";
      
    #if !DEBUG
     
@@ -88,21 +88,11 @@
         printf("Received packet from: %s\n\r", client.get_address());
         printf("Packet contents : '%s'\n\r",buffer);
         
-        
-        
-        NTPClient ntp;
-        ntp.setTime(client.get_address(), 123);
-    
-       
-        time_t ctTime;
-     
-        ctTime = time(NULL);
-        printf("Time is set to (UTC): %s,\r",  ctime(&ctTime));
+                
 
 #endif
     
-        time_t offset = time(NULL);
-        t.start();
+        
         printf("Calibrating wait 30s\n");
         
         myled2=1;
@@ -155,8 +145,7 @@
         #if !DEBUG
         server.sendTo(client, buffer, n);
         #endif
-        Timer t;
-        t.start();
+       
         
             while (1){
                 #if !DEBUG