diff options
| author | LI Qingwu <[email protected]> | 2022-05-26 13:33:54 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-06-11 14:35:28 +0100 |
| commit | 733147729a9103f337569e07706f208535f3c707 (patch) | |
| tree | e53345766cc8da3635cc658674c246c5c2ce845c /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | f0ca36b031f634214b39648b1b6a9b9a33998144 (diff) | |
iio: accel: bmi088: Modified the scale calculate
The units after application of scale are 100*m/s^2,
The scale calculation is only for the device
with the range of 3, 6, 12, and 24g,
but some other chips have a range of 2, 4, 6, and 8g.
Modified the scales from formula to a list, the scales in the list are
calculated as 9.8/32768*pow(2,reg41+1)*1.5, refer to datasheet 5.3.4.
The new units after the application of scale are m/s^2.
Reviewed-by: Alexandru Ardelean <[email protected]>
Signed-off-by: LI Qingwu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions