5 years ago.
Getting errors in the yaw angles.
Hi, First tanks for portting the filttering algorithm, i tried to get it working with my MBED lpc1768, i just changed the I2C ports, the magnetic declination and commented all the code related to the LCD display, i'm getting a considerable Error in the yaw angle it appears to respond just at 0 deggres, here are some samples that your program is giving me:
- Real yaw = 0°
q0 = 0.999996 q1 = 0.001028 q2 = 0.002471 q3 = 0.000427
Yaw, Pitch, Roll: -5.600804 0.283113 0.117880
- Real yaw= -45°
q0 = 0.999446 q1 = 0.008853 q2 = 0.006723 q3 = -0.031379
Yaw, Pitch, Roll: -9.239670 0.801814 0.989882
- Real yaw 90°
q0 = 0.936440 q1 = -0.014756 q2 = 0.009827 q3 = 0.350381
Yaw, Pitch, Roll: 35.360836 1.647245 -1.189479 List
- Real yaw 135°
q0 = 0.646507 q1 = -0.015767 q2 = 0.005870 q3 = 0.762723
Yaw, Pitch, Roll: 93.768402 1.813246 -0.655318
- Real Yaw 180°
q0 = 0.514353 q1 = -0.016941 q2 = 0.007942 q3 = 0.857374
Yaw, Pitch, Roll: 112.425468 2.133049 -0.218427
Anyway i'll be looking what's happening if you can give me any feedback i'll be pleased.
Question relating to:
4 years ago.
I am not sure why the quaternions shouldn't update. Are you sure you are including the quaternion filter in your compile?
4 years, 3 months ago.
Hi, I'm trying to use your library to work with 9150.
The chip seems to work but if I try to calculate yaw, pitch and roll I have some problems:
mx = -311.106 my = 276.389 mz = 888.591 mG q0 = 1.000000 q1 = 0.000000 q2 = 0.000000 q3 = 0.000000 yaw: 0.000000 | pitch: 0.000000 | roll: 0.000000
mx, my, mz change well If I rotate the board, but q0,q1,q2,q3 always remain the same (as you can see).
Please help, I need heading for my project.
You need to log in to post a question