Can I get IMU 1044 output with external tick method ?
Posted: Thu Aug 06, 2020 4:50 pm
Hello,
I am using a 1044 IMU for years and I need a way to get the output in C without the use of CPhidgetSpatial_setDataRate(spatial,WaitTime); so I can be able to call SpatialDataHandler when I want. This issue is very important for me because I would need to implement a complex IPC system if there is no way to do that.
This is the main part of my code which I would run without the CPhidgetSpatial_setDataRate(spatial,WaitTime); ticking method
Thank you very much,
regards,
Planktos
I am using a 1044 IMU for years and I need a way to get the output in C without the use of CPhidgetSpatial_setDataRate(spatial,WaitTime); so I can be able to call SpatialDataHandler when I want. This issue is very important for me because I would need to implement a complex IPC system if there is no way to do that.
This is the main part of my code which I would run without the CPhidgetSpatial_setDataRate(spatial,WaitTime); ticking method
Code: Select all
int CCONV SpatialDataHandler(CPhidgetSpatialHandle spatial, void *userptr, CPhidgetSpatial_SpatialEventDataHandle *data, int count)
{
raw[0][0] = data[0]->acceleration[0];raw[0][1] = data[0]->acceleration[1];raw[0][2] = data[0]->acceleration[2];
raw[1][0] = data[0]->angularRate[0];raw[1][1] = data[0]->angularRate[1];raw[1][2] = data[0]->angularRate[2];
raw[2][0] = data[0]->magneticField[0];raw[2][1] = data[0]->magneticField[1];raw[2][2] = data[0]->magneticField[2];
regards,
Planktos