04-13-2021 01:04 PM
Hello, I am using the BMF055 and the BSXLite lib for getting the orientation of my customed devices, and I have got the calib status of acc,gyro and mag of HIGH. so I got the euler data from BSXLite. But when the program run in my devices, some of them got the 0° out when the are heading East, other of them get the 0° when they are heading North. It's so strange. How it happened and how can I fix it?
04-15-2021 03:59 AM
Hello ZhuRan,
Could you save log data with as you described your problem?
04-15-2021 04:40 AM
OK, I have find something which may cause the problem. But it is still strange.
When I init the accelerometer, I do this:
do{
bma2x2_set_range(BMA2x2_RANGE_2G);
bma2x2_get_range(&temp);
}while(temp != BMA2x2_RANGE_2G);
then the range of measurement is -2G/2G, and the resolution of the result is 0.000244g/LSB as the user manual, but when I get data by bma2x2_read_accel_xyz(&bmf055_acc_data);, I got this: .x=11, .y=-11, .z=1060. But this is absolutely wrong, because 1060*0.000244=0.259g. I have get the right chip ID of bmf055 so the SPI is work correctly, so how it happened?
06-11-2021 09:10 AM
Hello ZhuRan,
As you set ACC range to 2G, it is not correct that you got x=11, .y=-11, .z=1060.
After you finished BMF055 initialization, could you print out all register to check if actual register values are correct?