05-24-2019 03:56 PM
Hi,
I am trying to integrate BSX_lite sensor fusion library in my project.I am using BMX160. I have referred the BSXLite Integration guide and followed the instructions aper the document. However, I am not getting the sensor data. I tried debugging by reading the return value s after executig each function, but its not showing any error.
The steps I followed are the following -
Kindly provide help with the same.
Thanks
Solved! Go to Solution.
05-27-2019 10:22 AM
05-27-2019 03:09 PM - edited 05-27-2019 03:21 PM
Hi,
Once I have initialized the library using bsx_init() function, I am trying to access the data from the sensors using the following functions -
bsx_get_accrawdata/bsx_get_gyrorawdata_rps/bsx_get_magrawdata etc..
As I understood from the Integration documentation(fig), First I have to initialize the sensor parameters with the values that are provided in the BSX-Lite zip file, using bsx_init() function. Then I have to similarly set the working mode. After these two steps, I should be able to access the data from the sensors using the respective functions - bsx_get_accrawdata/bsx_get_gyrorawdata_rps/bsx_get_magrawdata.
05-28-2019 09:16 AM - edited 05-28-2019 09:16 AM
BSX is a sensor fusion library.
Your initialization code seems correct, tbut the library cannot output any data on its own. You need to provide accelerometer, gyroscope and magnetometer sensor data to the library before you can retrieve the inputs.
This is done with te do_steps API.
05-29-2019 08:10 AM
Hi,
As per your suggestion, I tried to read the sensor data. However, I observed that I am not getting any sensor data in the first place. When I am reading the data registers (ACC/GYRO/MAG), its always returning 0.
I ensured that there is nothing wrong with the interface by reading other registers. The interface seems to be proper as I am able to read the sensor time data and other registers.
I verified the configurations of the sensors as well, by reading the configuration registers for the three sensors, before and after configuring. The configuration is also proper. I used the bsx_init/bsx_Set_working mode for configuring the sensors.
Still, I am not getting any data. Could you suggest if I am missing out something ??
Thanks