Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Files at this revision

API Documentation at this revision

Comitter:
jurica238814
Date:
Thu Jan 31 15:50:52 2019 +0100
Branch:
master
Parent:
28:0cc8a58195cb
Commit message:
Scaling factor hardcoded for acnSENSA format

Changed in this revision

config/proj_config.h Show annotated file Show diff for this revision Revisions of this file
tasks/tasks.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/config/proj_config.h	Thu Jan 31 09:45:57 2019 +0000
+++ b/config/proj_config.h	Thu Jan 31 15:50:52 2019 +0100
@@ -3,7 +3,7 @@
 
 
 #define DEBUG                           (0)
-#define PRINT_ON_RTT                    (0)
+#define PRINT_ON_RTT                    (1)
 #define DEBUG_LED                       (0)
 #define NANO_MODULE                     (0)
 #define NORMAL_AXIS                     (1)
--- 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);