I solved the gimbal lock problem for Euler angles just like how it is done mechanically in aerospace. They have a fourth axis driven by a motor that keeps the three Euler axis alignments away from gimbal lock. In software we can do that for free. I have getyaw(), getpitch(), and getroll() functions that just swap coordinate systems as needed before converting to a Euler angle. They coordinate system change is hidden in each function.CyberVillain wrote:hmm, thanks for input, but I do not understand if you want changes in FreePIE?
One way would be to expose the quaternion but there are not many API's that have these, Android Raw mode and Hydra are the only two that I can think of from top of my head
edit: Yei exposes them aswell
I only brought this up in this thread because it was being discussed as a gimble lock problem, and my *different* gimbal lock axis (pitch instead of roll) made me realize that this was solvable with coordinate rotation just be redefining the axes, just like how it is done in mechanical systems. It works. My Euler angles no longer have gimbal lock problems.
If FreePie has a gimbal lock problem, it may be worth fixing...