Skip to content
Commit dd42501a authored by Armando Visconti's avatar Armando Visconti Committed by Anas Nashif
Browse files

drivers/sensor: lsm6dsl: use sensor APIs to convert to units



Make use of sensor_ug_to_ms2() and sensor_10udegrees_to_rad() APIs
to convert from raw values into proper units (i.e. m/s^2 for accel
and rad/s for gyro). It also improves measurement precision.

Fixes #63980

Signed-off-by: default avatarArmando Visconti <armando.visconti@st.com>
parent a4c2b848
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment