Skip to content

Commit 13ca54d

Browse files
committed
Document the scaling
1 parent 395a2f6 commit 13ca54d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ All the MEMS drivers in stm32duino repositories have the same units when returni
4545
- mdps for gyroscope (thousandth of degree/s)
4646
- mgauss for magnetometer (thousandth of gauss)
4747

48-
Readings can be obtained either as raw (unscaled) ```uint16_t``` values from the ```XXX_GetAxesRaw``` functions, or as physical (scaled) ```uint32_t``` values from the ```XXX_GetAxes``` functions, where ```XXX``` is eithet ```ACC``` or ```GYRO```.
48+
Readings can be obtained either as raw (unscaled) ```uint16_t``` values from the ```XXX_GetAxesRaw``` functions, or as physical (scaled) ```uint32_t``` values from the ```XXX_GetAxes``` functions, where ```XXX``` is eithet ```ACC``` or ```GYRO```. The factor to use for scaling from a raw to a physical value is from the ```XXX_GetSensitivity``` functions.
4949

50-
For example, to convert the raw reading to float m/s^2, the following can be done:
50+
For example, to convert the raw acceleration reading to float m/s^2, the following can be done:
5151

5252
```cpp
5353
int16_t acc_raw[3];

0 commit comments

Comments
 (0)