diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-25 18:09:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-25 18:09:58 +0200 |
commit | 4580abddc3f40aa07da5d7fd8239b4d0e6c852f2 (patch) | |
tree | 56673694f86a4a8973ba74a4cf171616132b9f67 /x-plane-plugin/plugin.c | |
parent | 3f09f9a8593601b47af4fc3d342823a861a14fbc (diff) |
Don't convert the same value to degrees twice in a row.
Diffstat (limited to 'x-plane-plugin/plugin.c')
-rw-r--r-- | x-plane-plugin/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c index e61dda89..f7c3a1b0 100644 --- a/x-plane-plugin/plugin.c +++ b/x-plane-plugin/plugin.c @@ -88,8 +88,8 @@ int write_head_position( XPLMSetDataf(view_x, shm_posix->data[TX] * 1e-2 + offset_x); XPLMSetDataf(view_y, shm_posix->data[TY] * 1e-2 + offset_y); XPLMSetDataf(view_z, shm_posix->data[TZ] * 1e-2 + offset_z); - XPLMSetDataf(view_heading, shm_posix->data[RX] * 57.295781); - XPLMSetDataf(view_pitch, shm_posix->data[RY] * 57.295781); + XPLMSetDataf(view_heading, shm_posix->data[RX]); + XPLMSetDataf(view_pitch, shm_posix->data[RY]); PortableLockedShm_unlock(lck_posix); } return 1; |