Page 1 of 1

MPU 6050 X Y Z degree outputs

Posted: Wed Nov 07, 2018 6:20 am
by STibor
Hello,

I looked at the topic and the blog.
I did not know how to get a degree output.
Can you help me get XYZ degree outputs?
Topic: http://www.matrixtsl.com/mmforums/viewt ... 050#p73643
Blog: http://www.matrixtsl.com/blog/quadrocop ... -and-gyro/

Re: MPU 6050 X Y Z degree outputs

Posted: Wed Nov 07, 2018 11:53 am
by Benj
Hello,

You cannot do a Z axis with a MPU6050 because there is no magnetometer available. Most magnetometers I have used have been extremely disappointing but to be fair I don't often get a lot of time to play with them and it could simply be a calibration issue.

As for X and Y rotations these should be covered in the blog via the Roll and Pitch angles?

Re: MPU 6050 X Y Z degree outputs

Posted: Wed Nov 07, 2018 3:22 pm
by STibor
Does the example program return pitch and roll angle?
The linked Arduino program would be perfect for migrating in Flowcode.
Project: https://www.instructables.com/id/How-to ... 050GY-521/
Ino download: https://cdn.instructables.com/ORIG/FDJ/ ... JTLNU0.ino

Thanks for the help!

Re: MPU 6050 X Y Z degree outputs

Posted: Fri Nov 09, 2018 12:45 pm
by STibor
Hello!

I set the two example programs into 1 program.
I made a mistake because the filter sim pitch and the filter's sim roll variable value are incremented / changed per measurement.
Why is the value of "filter pitch" increasing?