05-30-2020 06:54 AM
hi,could i use the function BSX_S8 bsx_get_gyrocordata_rps(ts_dataxyzf32*) in BSXLITE fusion library ?
and i find that ts_dataxyzf32* is in BsxLibraryDataTypes.h.
/*struct ts_dataxyzf32*/
/*brief 3-axis data as F32*/
typedef struct{
BSX_F32 x; /**< x-axis data */
BSX_F32 y; /**< y-axis data */
BSX_F32 z; /**< z-axis data */
}ts_dataxyzf32;
but i find other functions that also use 'ts_dataxyzf32*'in BSXLITE fusion library,such as BSX_S8 bsx_get_acccordata(ts_dataxyzf32*);
how can i distinguish between them?
could i use them directly?
thanks
06-01-2020 07:29 PM
Yes, you can use that function to get corrected gyro data from BSX lite lib.
ts_dataxyzf32 is just a data type defined for lib output which contains x / y / z data. so it is the datatype used as gyro and acc output.
you can easily distinguish them by their name.
bsx_get_gyrocordata_rps is function to read out gyro data in unit of rad per second
bsx_get_acccordata is function to read out acceleration data
06-07-2020 04:36 AM
thanks
i could see the acc data now.
but the data seems to be too large ,maybe overflow .
the acc sensor is 14 -bit.
i can not understand why the data is too large.
i use the function as follows:
bsx_get_acccordata(&bmf055_acco);
bmf055_acc_data_int_x= conv_scale_float_int16(bmf055_acco.x, QUAT_SCALING_FACTOR);//QUAT_SCALING_FACTOR=1
06-08-2020 06:49 PM
Yes, the acc data is 14 bit but the BSX arleady convert the acc data as physical unit (m/s2) and use 16 bits when you call that funciton.
06-09-2020 01:43 AM
hi,so what is the output m/s range?
thanks.