FreePie IMU receive
Posted: Wed Oct 13, 2021 7:11 am
Hello everyone, I can't figure out which buffer to accept from the FreePie IMU application for Android. Does anyone know?
The application sends a UDP packet containing accel, gyro, magnetometr and rotation, but I can't find the right buffer to get this data.
Source code https://github.com/Xtreamer/FreePie-Diy ... #L147-L174
Another app with receive this packet https://github.com/opentrack/opentrack/ ... ie-udp.cpp
As far as I understand, the first 2 bytes are the device index and flags. This is followed by a float array, I tried 6, 9, 12 values, but the data cannot be obtained correctly (except for the first two bytes).
I tried using double instead of float, but that didn't help either. Please help me find the right structure for UDP packet, thanks.
The application sends a UDP packet containing accel, gyro, magnetometr and rotation, but I can't find the right buffer to get this data.
Source code https://github.com/Xtreamer/FreePie-Diy ... #L147-L174
Another app with receive this packet https://github.com/opentrack/opentrack/ ... ie-udp.cpp
As far as I understand, the first 2 bytes are the device index and flags. This is followed by a float array, I tried 6, 9, 12 values, but the data cannot be obtained correctly (except for the first two bytes).
Code: Select all
struct _freePieIMUAndroid {
unsigned char deviceIndex;
unsigned char flags; //raw data = 1, orient = 2, both = 3
float data[12]; ///?????
};