Skip to main content
Visitor II
October 12, 2022
Solved

(LSM6DSL) I want to know why raw data(angular rate) is multiplied by sensitivity.

  • October 12, 2022
  • 3 replies
  • 1703 views

(LSM6DSL) I want to know why raw data(angular rate) is multiplied by sensitivity.

Multiply the angular velocity(gyro raw data) by sensitivity and it becomes mdps, what exactly is mdps?

float_t lsm6dsl_from_fs500dps_to_mdps(int16_t lsb)

{

  return ((float_t)lsb * 17.50f);

}

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @jjo.2​ ,

    "mdps" means milli degree per second, which is the measurement of an angular rate.

    You need to multiply the LSB data by a specific factor because it refers to the sensitivity according to the datasheet of the mechanical element inside the sensor.

    -Eleon

    3 replies

    ST Employee
    October 24, 2022

    Hi @jjo.2​ ,

    "mdps" means milli degree per second, which is the measurement of an angular rate.

    You need to multiply the LSB data by a specific factor because it refers to the sensitivity according to the datasheet of the mechanical element inside the sensor.

    -Eleon

    jjo.2Author
    Visitor II
    October 27, 2022

    Thank you for your answer. One more question is, do you have a formula or example code to calculate the angle using raw data?

    I also want to know if there is an example code using a complementary filter.

    jjo.2Author
    Visitor II
    October 27, 2022

    @Eleon BORLINI​ 

    Thank you for your answer. One more question is, do you have a formula or example code to calculate the angle using raw data?

    I also want to know if there is an example code using a complementary filter.