04-30-2020 01:55 PM
Hi everyone,
I have integrated the BSXlite library with the BSX160. I have successfully calibrated the sensors but I cannot get the offset values from gyro and magnetometer.
When I call the bsx_get_accoffset() it works fine but when I call the bsx_get_magoffsets() and bsx_get_gyrooffset_dps() it returns an error saying "undefined reference to bsx_get_gyrooffset_dps" and "undefined reference to bsx_get_magoffsets"
Why is this happening? BSXLite_library_integration manual sais that in lite version offsets are availble. How can I get the offsets?
Thanks in advance
Nick
05-09-2020 06:45 PM
Yes, these two API is not implemented in BSX lite lib.
You can try the following API instead to get the offset compensated result.
bsx_get_magcordata(&magCorData);
bsx_get_acccordata(&accCorData);
bsx_get_gyrocordata_rps(&gyroCorData);