summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/tracklogger.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-06 09:39:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-07 21:03:42 +0200
commita497af1ad4298de4ae9fab4453a0164950c4faf4 (patch)
treecd8f37e7d90f6f1b3ac585ab6d0d5822ddc6a993 /opentrack-logic/tracklogger.cpp
parent6571b78ffd9f74f9e863ff4c78b8ddebb53d52c5 (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/tracklogger.cpp')
0 files changed, 0 insertions, 0 deletions