Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
Diff: tasks/tasks.cpp
- Branch:
- axis_change
- Revision:
- 12:9d991deddd03
- Parent:
- 11:4dc690157508
--- a/tasks/tasks.cpp Fri Apr 20 09:26:49 2018 +0000 +++ b/tasks/tasks.cpp Fri Apr 20 09:31:59 2018 +0000 @@ -100,8 +100,8 @@ advertisementPacket.magnetometer[2] = (int16_t)0; - advertisementPacket.accelerometer[0] = (int16_t)mems->readXAxis(); - advertisementPacket.accelerometer[1] = (int16_t)mems->readYAxis(); + advertisementPacket.accelerometer[0] = -(int16_t)mems->readYAxis(); + advertisementPacket.accelerometer[1] = (int16_t)mems->readXAxis(); advertisementPacket.accelerometer[2] = (int16_t)mems->readZAxis(); advertisementPacket.acc_lsb_value = LSB_VALUE;