Skip to main content
Graduate
December 14, 2022
Solved

Can we use MotionEC library for LSM303AGR

  • December 14, 2022
  • 1 reply
  • 715 views

Hi Everyone,

Right now i am using LSM303AGR sensor in my project. So can i use the MotionEC library for this sensor to get Roll, Pitch and heading?

Thank you!

with regards,

ANIL.

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

    Hi ANIL @Anil​ ,

    yes for sure, since the MotionEC E-Compass library manages data acquired from the accelerometer and magnetometer, which are the LSM303AGR outputs.

    As reported in the user manual, it features the device orientation (quaternions, Euler angles), device rotation (virtual gyroscope functionality, i.e. roll, pitch and yaw data), gravity vector and linear acceleration outputs.

    -Eleon

    1 reply

    ST Employee
    December 16, 2022

    Hi ANIL @Anil​ ,

    yes for sure, since the MotionEC E-Compass library manages data acquired from the accelerometer and magnetometer, which are the LSM303AGR outputs.

    As reported in the user manual, it features the device orientation (quaternions, Euler angles), device rotation (virtual gyroscope functionality, i.e. roll, pitch and yaw data), gravity vector and linear acceleration outputs.

    -Eleon