From 2dd09018985cb714ea5e8a9bb7a110fb68625f2c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Feb 2017 21:30:52 +0100 Subject: proto/simconnect: fix X position wrong sign Reported-by: @mrsanchos Alexander Orokhovatskiy --- proto-sc/ftnoir_protocol_sc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto-sc/ftnoir_protocol_sc.cpp b/proto-sc/ftnoir_protocol_sc.cpp index d60ab3fe..c8df0443 100644 --- a/proto-sc/ftnoir_protocol_sc.cpp +++ b/proto-sc/ftnoir_protocol_sc.cpp @@ -65,7 +65,7 @@ void simconnect::pose( const double *headpose ) { virtSCRotZ = float(headpose[Roll]); // cm to meters - virtSCPosX = float(headpose[TX]/100); + virtSCPosX = float(-headpose[TX]/100); virtSCPosY = float(headpose[TY]/100); virtSCPosZ = float(-headpose[TZ]/100); } -- cgit v1.2.3