Is there a MEMS sensor that could direct output pitch roll and yaw?
..
..
Hi @BChao ,
all ST gyroscopes outputs pitch, roll and yaw, not in physical units such as radians or degree per second (dps), but in LSB. Inertial measurement units do the same too. You have then to convert the LSB into dps according to the datasheet sensitivity. A typical conversion formula (for the LSM6DSO, that you can find on Github lsm6dso_reg.c) is:
float_t lsm6dso_from_fs125_to_mdps(int16_t lsb)
{
return ((float_t)lsb) * 4.375f;
}In this way (i.e. working in the digital domain), you can select different full scales, with different resolutions. So, the output is not the direct physical measure but you can just apply the conversion formula to get it. If you want to calculate the angle, you have to first calibrate the device and then integrate the data according to the 1/ODR time basis.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.