cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use MotionEC library for LSM303AGR

Anil3
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

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

View solution in original post

1 REPLY 1
Eleon BORLINI
ST Employee

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