Open pitboxx opened 3 weeks ago
I also added moving the position offset to the direction of view of HMD
Hi, thanks for your pull request, however if we reassign yprOffset we can no longer center the helmet in Euler angle mode, which is a pretty important feature
Added a reset and rotation of the HMD quaternion to current IMU readings inside SetCentering function. Now, when we press Num5, the helmet is centered.
As soon as I can test it, I will accept your changes, thank you very much!
Thank you. I am glad to help you.
Hi, I checked the fixes, unfortunately in "yaw, pitch, roll mode" the axes start "adding offsets" and stop working correctly.
Does everything work correctly for you?
Hello. Thank you for testing. I also just came across this effect of accumulation of rotation errors. I am currently in the process of finding a solution for this problem.
Hello. I was able to eliminate the gimbal lock between the pitch and roll axes by sequentially applying separate rotation quaternions along each of the axes. Please check it with yourself.
When rotating HMD left and right, we encounter a gimbal lock situation. To avoid this, I suggest storing the HDD rotation state also in a quaternion, which rotates incrementally from the IMU sensor.