[Help] Correcting Roll with MPU6050 pitch/yaw
Posted: Mon Jan 21, 2019 10:13 am
OK, so I've built myself a DIY VR headset using an MPU6050 gyroscope/accelerometer (Originally intended as an ETracker, but with the software replaced with a FreePIE interaction for 360 degree rotation) - however, I've run into a small hiccup.
When rotated to the left or right in yaw (So, turned left or right) I've noticed that the roll goes completely haywire - even reversing if you go far enough. Also, things go slightly weird with pitch/roll too - that ones difficult to explain though, and I have a feeling that any roll fix could be adapted to fix this as well.
Also, I'm a complete noob when it comes coding Arduino, and only slightly less of a noob with FreePIE - I'm using a slightly modified version of this Github Project:
https://github.com/mirkoBastianini/Head ... no-FreePie
with a few of the axis' swapped since I think I might have the tracker backwards - it's glued in place now, and there's nothing I can do to change it. (-‸ლ)
I'm attaching my modified versions just in case it's something I did wrong - if anyone can help with what's going on here that'd be amazing!
When rotated to the left or right in yaw (So, turned left or right) I've noticed that the roll goes completely haywire - even reversing if you go far enough. Also, things go slightly weird with pitch/roll too - that ones difficult to explain though, and I have a feeling that any roll fix could be adapted to fix this as well.
Also, I'm a complete noob when it comes coding Arduino, and only slightly less of a noob with FreePIE - I'm using a slightly modified version of this Github Project:
https://github.com/mirkoBastianini/Head ... no-FreePie
with a few of the axis' swapped since I think I might have the tracker backwards - it's glued in place now, and there's nothing I can do to change it. (-‸ლ)
I'm attaching my modified versions just in case it's something I did wrong - if anyone can help with what's going on here that'd be amazing!