summaryrefslogtreecommitdiffhomepage
path: root/proto-wine
diff options
context:
space:
mode:
authorStanisław Halik <sthalik@misaki.pl>2017-05-17 09:24:52 +0200
committerGitHub <noreply@github.com>2017-05-17 09:24:52 +0200
commit3953977d0a9048883adc5db80bd714bd9bc72ed8 (patch)
tree15aebb8977204cc4d964c9f68fb2da204e9e3f44 /proto-wine
parent4bb333b4c9690f6e88d07b0ba6ccbd2d026cfd00 (diff)
parent0d8bfd9e607e0aea7c5af61496a6105449eae2b9 (diff)
Merge pull request #623 from miniskipper/unstable
x-plane plugin
Diffstat (limited to 'proto-wine')
-rw-r--r--proto-wine/ftnoir_protocol_wine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp
index ea7fadf2..b3a780e7 100644
--- a/proto-wine/ftnoir_protocol_wine.cpp
+++ b/proto-wine/ftnoir_protocol_wine.cpp
@@ -4,6 +4,7 @@
#include <QStringList>
#include <QCoreApplication>
#include <string.h>
+#include <math.h>
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
@@ -37,7 +38,7 @@ void wine::pose( const double *headpose )
{
lck_shm.lock();
for (int i = 3; i < 6; i++)
- shm->data[i] = headpose[i] / 57.295781;
+ shm->data[i] = headpose[i] / (180 / M_PI );
for (int i = 0; i < 3; i++)
shm->data[i] = headpose[i] * 10;
if (shm->gameid != gameid)