Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Branch:
master
Revision:
29:b021b33cf666
Parent:
26:6101bb09f70d
--- a/tasks/tasks.cpp	Thu Jan 31 09:45:57 2019 +0000
+++ b/tasks/tasks.cpp	Thu Jan 31 15:50:52 2019 +0100
@@ -138,7 +138,14 @@
             advertisementPacket.accelerometer[1] = (int16_t)mems->readXAxis();
             advertisementPacket.accelerometer[2] = (int16_t)mems->readZAxis();
 #endif
+            advertisementPacket.accelerometer[0] *= 60; 
+            advertisementPacket.accelerometer[1] *= 60;
+            advertisementPacket.accelerometer[2] *= 60;
             
+            printf("X: %d", advertisementPacket.accelerometer[0]);
+            printf("\tY: %d", advertisementPacket.accelerometer[1]);
+            printf("\tZ: %d\n", advertisementPacket.accelerometer[2]);
+
             advertisementPacket.acc_lsb_value = LSB_VALUE;
             
             updateServiceT.signal_set(MEAS_DONE);