Nucleo-transfer

Dependencies:   ADS1015 MPU6050 PixelArray PixelArray-Nucleo mbed WS2813

Fork of Nucleo-transfer by Momo Medical

Revision:
10:6b3034ec3c47
Parent:
9:514a44bf510f
Child:
11:73c6def38fbd
--- a/Sensorplate/main.cpp	Wed Sep 27 15:05:02 2017 +0000
+++ b/Sensorplate/main.cpp	Wed Sep 27 15:55:32 2017 +0000
@@ -332,7 +332,7 @@
     elec[4] = pel.readADC_SingleEnded(0);       //Fifth PE readout
 
     while(t.read_us()<(4.5*(cycle_time/5))) {}  //Wait untill 90% of cycle
-    pc.printf("!,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,\r\n", res[4], res[7], res[6], res[5], res[1], res[0], res[2], res[3], elec[0], elec[1], elec[2], elec[3], elec[4], acce[0]*100, acce[1]*100, acce[2]*100, gyro[0]*100, gyro[1]*100, gyro[2]*100); // print all to serial port
+    pi.printf(",!,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,\r\n", res[4], res[7], res[6], res[5], res[1], res[0], res[2], res[3], elec[0], elec[1], elec[2], elec[3], elec[4], acce[0]*100, acce[1]*100, acce[2]*100, gyro[0]*100, gyro[1]*100, gyro[2]*100); // print all to serial port
     //receiving order: 8 resistive sensors, 5 electric readings, 3 accelerometer axes, 3 gyroscope axes
     
     if (mute_flag == 1) {
@@ -400,11 +400,11 @@
 
     if (power_plug_logged != power_plug_state) {
         if (power_plug_state == 1) {    
-            pi.printf("&07\n");
+            pi.printf("#08\n");
             power_plug_logged = power_plug_state;
         } 
         if (power_plug_state == 0) {
-            pi.printf("&70\n");
+            pi.printf("#80\n");
             power_plug_logged = power_plug_state;            
         }
     }