Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Revision:
2:41a1cdac47a7
Parent:
1:198b9945994e
Child:
4:49b1aeca55e4
diff -r 198b9945994e -r 41a1cdac47a7 source/main.cpp
--- a/source/main.cpp	Wed Mar 07 14:39:27 2018 +0000
+++ b/source/main.cpp	Thu Mar 08 10:29:22 2018 +0000
@@ -41,16 +41,15 @@
         advertisementPacket.magnetometer[1] = (int16_t)0;
         advertisementPacket.magnetometer[2] = (int16_t)0;
         
-        
-        advertisementPacket.accelerometer[0] = (int16_t)mems.readXAxis()*LSB_VALUE/375;
-        advertisementPacket.accelerometer[1] = (int16_t)mems.readYAxis()*LSB_VALUE/375;
-        advertisementPacket.accelerometer[2] = (int16_t)mems.readZAxis()*LSB_VALUE/375;
-        
-        
+        advertisementPacket.accelerometer[0] = (int16_t)mems.readXAxis();
+        advertisementPacket.accelerometer[1] = (int16_t)mems.readYAxis();
+        advertisementPacket.accelerometer[2] = (int16_t)mems.readZAxis();
+        advertisementPacket.acc_lsb_value = 0xC000;
+        /*
         printf("%d\t", advertisementPacket.accelerometer[0]);
         printf("%d\t", advertisementPacket.accelerometer[1]);
         printf("%d\r\n", advertisementPacket.accelerometer[2]);
-
+        */
         //updatePayload(ble, &advertisementPacket);
         
         /* setup advertising */