2018-09-11 05:42 AM
Hello,
i want to change the scale of Accelerometer LSM6DSM from default +-2g to +-8g in the Sensortile. If i use the Firmware "FP-SNS-allmems1" and call the function "DrvStatusTypeDef BSP_ACCELERO_Set_FS_Value ( void * handle, float fullScale) " with BSP_ACCELERO_Set_FS_Value(TargetBoardFeatures.HandleAccSensor,4.0f) i don't get any change of scale, so if i log Data trough the App "ST BlueMS" i don't get Values above +-2g.
Pls help.
2019-12-06 09:20 AM
Even I am facing same problem . If you changed successfully, can you suggest me ?
2020-02-06 08:46 AM
Hello,
I am also facing the same issue. The LSM6DSM from the Sensortile seems to be configured by default to +/- 2g fullscale. I want to change the ST code to use +/- 8g and it does not seem that the ST code taken directly from the ST website is working for this case.
Several return values are not checked while the sensors are started/configured; many functions are returning unchecked and unhandled errors.
Changing the LSM6DSM_ACC_FS define to "8" instead of "2" does not change the range as expected.
Is there anyone at ST that tried to use their own code with 8g configuration?
Thank you for your help.
Best regards
2020-02-07 05:32 AM
So , I figured out how to modify the acceleration data full range from the ST example downloaded from their website.
Here are the steps I followed to change from 2g/50Hz to 8g/100Hz :
The original ST code is nonetheless broken; several init functions are not checked for errors and do not run as expected (many errors).
Hope it will help you one day!