st_lsm6dsvx: odr_calib seems wrong
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-10-16 1:09 AM
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 ?
Labels:
- Labels:
-
Accelerometers
-
Gyroscopes
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-10-18 10:47 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
