-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaw value problem #25
Comments
Do you have a code snippet to simulate it? |
Sure! On line 10 of this file https://github.com/Xinyuan-LilyGO/LilyGo-T-Wristband/blob/master/examples/T-Wristband-MPU9250/sensor.h change:
with
then open serial monitor and, with the button on the device, go to the page where you see accelerometer values (green text on black background). On the serial monitor, you will see the output printed by this code (lines 185-192 same sensor.h file, you can also remove comment on line with header "Yaw, Pitch, Roll: ")
Without moving the device I should get almost the same number for yaw, pitch and roll, instead I get differents values at every loop. For any other question don't hesitate to ask! |
Any news?? |
Sorry, but i don't have MPU9250
Hope it can help |
I would like to develop a compass.
So I modified MPU9250 example creating a sprite with an arrow which I rotate with the angle returned by IMU.yaw.
If I correctly understand IMU.yaw should give me the angle in degrees from north to the current orientation.
The problem is IMU.yaw return me completly random values, for example without moving the device and setting
#define SerialDebugMPU9250 true
on sensor.h I get:moving from positive to negative values without any sense.
The text was updated successfully, but these errors were encountered: