![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Simple step tracking
Fork of ST by
Diff: main.cpp
- Revision:
- 6:a400e1e47156
- Parent:
- 4:b741278722c1
- Child:
- 9:e265a634306d
diff -r 2fbd60a970d6 -r a400e1e47156 main.cpp --- a/main.cpp Thu Oct 19 21:43:19 2017 +0000 +++ b/main.cpp Thu Oct 19 21:59:43 2017 +0000 @@ -125,6 +125,9 @@ float gy = gyroscope[1] * 250.0 / 32768.0; float gz = gyroscope[2] * 250.0 / 32768.0; + uint8_t *gzValue; + gzValue = reinterpret_cast<uint8_t*>(&gz); + pc.printf("SIZE TEST %d \n", sizeof(gzValue)); pc.printf("%f, %f, %f, %f, %f, %f \n", roll, pitch, yaw, gx, gy, gz); buttonServicePtr->updateButtonState(roll, pitch, yaw, gx, gy, gz);