diff --git a/platformio.ini b/platformio.ini index 20c96c1..fbfa161 100644 --- a/platformio.ini +++ b/platformio.ini @@ -33,6 +33,12 @@ build_flags = build_src_filter = + +[env:sprejemnik-d1] +build_src_filter = + + +board = esp32dev +build_flags = + [env:sprejemnik-olimex] build_src_filter = + diff --git a/src/sensor_msg.h b/src/sensor_msg.h index 94304b1..d9732a8 100644 --- a/src/sensor_msg.h +++ b/src/sensor_msg.h @@ -1,5 +1,3 @@ -#include - typedef struct sensor_msg { // ID senzorja uint8_t id; diff --git a/src/sprejemnik.cpp b/src/sprejemnik.cpp index cb98c9f..e345df4 100644 --- a/src/sprejemnik.cpp +++ b/src/sprejemnik.cpp @@ -50,9 +50,9 @@ void prejemPodatkov(const uint8_t * mac_addr, const uint8_t * noviPodatki, int l memcpy(&odcitki[odcitekId], noviPodatki, sizeof(sensor_msg)); #ifdef DEBUG - Serial.printf("aX: %i \n", odcitki[odcitekId].aX); - Serial.printf("aY: %i \n", odcitki[odcitekId].aY); - Serial.printf("aZ: %i \n", odcitki[odcitekId].aZ); + Serial.printf("aX: %f \n", odcitki[odcitekId].aX); + Serial.printf("aY: %f \n", odcitki[odcitekId].aY); + Serial.printf("aZ: %f \n", odcitki[odcitekId].aZ); Serial.printf("qX: %f \n", odcitki[odcitekId].qX); Serial.printf("qY: %f \n", odcitki[odcitekId].qY); Serial.printf("qZ: %f \n", odcitki[odcitekId].qZ);