![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Send on Sync message
Dependencies: BNO055_fusion RF24_fork mbed
Fork of F042_BNO055_toNRF24 by
Diff: main.cpp
- Revision:
- 3:6bba74b99bd3
- Parent:
- 1:03c9c0e3fc70
diff -r 80989e6af5e7 -r 6bba74b99bd3 main.cpp --- a/main.cpp Thu Jan 26 12:09:18 2017 +0000 +++ b/main.cpp Mon Feb 06 21:20:55 2017 +0000 @@ -3,9 +3,8 @@ #include "RF24.h" #include "config.h" -#ifdef DEVICE_SERIAL -#undef DEVICE_SERIAL -#endif +#define uniqueSerialAddr_stm32 (unsigned long *)0x1FFFF7E8 +#define STM32_UUID ((uint32_t *)0x40048058) DigitalOut led(ledpin); I2C i2c(i2c_sda, i2c_scl); @@ -22,7 +21,6 @@ uint8_t packageCntr; int16_t q[4]; int32_t linAcc[3]; - } imuData; struct SyncMsg { @@ -51,8 +49,6 @@ bool SendFlag = false; -Timer SendTimer; - int main() { @@ -73,6 +69,10 @@ SetupRadio(); + + uint32_t idPart1 = STM32_UUID[0]; + uint32_t idPart2 = STM32_UUID[1]; + uint32_t idPart3 = STM32_UUID[2]; //radio setup @@ -81,7 +81,7 @@ - imuData.sensorID = NodeID; + imuData.sensorID = idPart2; imuData.packageCntr = 0; while(true) {