Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Files at this revision

API Documentation at this revision

Comitter:
dbartolovic
Date:
Wed Mar 21 09:34:27 2018 +0000
Parent:
8:7ba4f82de9b6
Child:
10:3c1e5bf6a00b
Commit message:
Corrected scaling factor.

Changed in this revision

aconno_ble/aconno_ble.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/aconno_ble/aconno_ble.h	Tue Mar 20 15:13:51 2018 +0000
+++ b/aconno_ble/aconno_ble.h	Wed Mar 21 09:34:27 2018 +0000
@@ -16,7 +16,7 @@
 #define ADV_INTERVAL_MS     (100)
 #define APPLICATION_ID      (0xCF170059) //(0xCF170059)
 
-#define LSB_VALUE           (0x0001)
+#define LSB_VALUE           (0xFFFF)    // this is divided by 2^16 in app
 
 /* Global variables and constants */
 
--- a/tasks/tasks.cpp	Tue Mar 20 15:13:51 2018 +0000
+++ b/tasks/tasks.cpp	Wed Mar 21 09:34:27 2018 +0000
@@ -105,7 +105,8 @@
         advertisementPacket.accelerometer[2] = (int16_t)mems->readZAxis();
         
         //advertisementPacket.acc_lsb_value = 0xC000;
-        advertisementPacket.acc_lsb_value = 0x0100;
+        //advertisementPacket.acc_lsb_value = 0x0100;
+        advertisementPacket.acc_lsb_value = LSB_VALUE;
         
         updateServiceT.signal_set(MEAS_DONE);
         bleT.signal_set(MEAS_DONE);