Question
st_lsm6dsvx: odr_calib seems wrong
Hello,
I think there is two errors in the st_lsm6dsvx driver in the odr_calib calculation algo : odr_calib = (data * 37500) / 1000 :
- data should be casted in s8 like in other drivers
- the formula seems wrong according to the datasheet :
Formula seems to use bad coefficients
ttrim[s] = 1 / (40000 * (1 + 0.0015 * val))
ttrim[ns] ~= 25000 - 37.5 * val
ttrim[ns] ~= 25000 - (37500 * val) / 1000
But datasheet says
ttrim[s] = 1 / (46080 * (1 + 0.0013 * val))
ttrim[ns] ~= 21701 - 28.212 * val
ttrim[ns] ~= 21701 - (28212 * val) / 1000
Am I wrong ?
