diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-06 09:39:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-07 21:03:42 +0200 |
commit | a497af1ad4298de4ae9fab4453a0164950c4faf4 (patch) | |
tree | cd8f37e7d90f6f1b3ac585ab6d0d5822ddc6a993 /opentrack-logic/state.hpp | |
parent | 6571b78ffd9f74f9e863ff4c78b8ddebb53d52c5 (diff) |
logic/tracker: fix gimbal lock in a crude way
Divide euler angle representation by four. Now 180 maps to 45. Our
conversion back from matrix to euler won't cause gimbal lock anymore. Of
course multiply back when it's time to map.
Keep the real representation for translation compensation.
The value of four got chosen since it's a multiply of two (IEEE float
exponent is base 2).
Diffstat (limited to 'opentrack-logic/state.hpp')
0 files changed, 0 insertions, 0 deletions